com.ptc.wgmecad
Class CCAComponentFactory
java.lang.Object
com.ptc.wgmecad.CCAComponentFactory
- public class CCAComponentFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compRegistry
private static HashMap compRegistry
CCAComponentFactory
public CCAComponentFactory()
registerComponent
public static void registerComponent(String displayName,
String commandLineOption,
Class comp)
isValidComponentCommandLineOption
public static boolean isValidComponentCommandLineOption(String option)
getComponentByCommandLineOption
public static Component getComponentByCommandLineOption(String option,
CCAWGMMain ccawgm)
throws ComponentNotRegisteredException,
ComponentInstantiationException
- This method creates an instance of the component referenced by a comand line option.
- Throws:
ComponentNotRegisteredException
ComponentInstantiationException
GetComponentConstructorByCommandLineOption
private static Constructor GetComponentConstructorByCommandLineOption(String option)
throws ComponentNotRegisteredException,
ComponentInstantiationException
- Throws:
ComponentNotRegisteredException
ComponentInstantiationException
getDisplayableRegisteredComponents
public static String[] getDisplayableRegisteredComponents()
clearRegistry
public static void clearRegistry()
getComponentDisplayName
public static String getComponentDisplayName(Component comp)