diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/FrameworkAdminFactory.java')
-rw-r--r-- | bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/FrameworkAdminFactory.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/FrameworkAdminFactory.java b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/FrameworkAdminFactory.java deleted file mode 100644 index 07fcec83c..000000000 --- a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/FrameworkAdminFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2008 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.equinox.internal.provisional.frameworkadmin; - -/** - * Factory class for creating FrameworkAdmin object from Java programs. - * - * @see FrameworkAdmin - */ -public abstract class FrameworkAdminFactory { - abstract protected FrameworkAdmin createFrameworkAdmin() throws InstantiationException, IllegalAccessException, ClassNotFoundException; - - // proposed method: only for ConfiguratorManipulatorFactory, magic system property is used. - public static FrameworkAdmin getInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException { - FrameworkAdminFactory factory = (FrameworkAdminFactory) Class.forName(className).newInstance(); - return factory.createFrameworkAdmin(); - } - - // // method 3: two magic system properties are used. - // public static FrameworkAdmin getInstance() throws InstantiationException, IllegalAccessException, ClassNotFoundException { - // String className = System.getProperty("org.eclipse.equinox.internal.provisional.frameworkadmin.frameworkAdminFactory"); - // if (className == null) - // throw new ClassNotFoundException("System property keyed by \"org.eclipse.equinox.internal.provisional.frameworkadmin.frameworkAdminFactory\" is not set."); - // FrameworkAdminFactory factory = (FrameworkAdminFactory) Class.forName(className).newInstance(); - // return (FrameworkAdmin) factory.createFrameworkAdmin(); - // } - - // // method 1: no magic system properties are used. - // - // public static FrameworkAdmin getInstance(String className, String configuratorManipulatorFactoryName) throws InstantiationException, IllegalAccessException, ClassNotFoundException { - // ExtendedFrameworkAdminFactory factory = (ExtendedFrameworkAdminFactory) Class.forName(className).newInstance(); - // return (FrameworkAdmin) factory.createFrameworkAdmin(configuratorManipulatorFactoryName); - // } - -} |