Package org.java.plugin.standard
Class StandardObjectFactory
java.lang.Object
org.java.plugin.ObjectFactory
org.java.plugin.standard.StandardObjectFactory
Standard object factory implementation.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExtendedPropertiesprotected org.apache.commons.logging.Log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(ExtendedProperties configuration) Configures this factory instance.protected ObjectcreateClassInstance(String className) protected PluginLifecycleHandlerCreates new instance of plug-in life cycle handler implementation class using standard discovery algorithm to determine which handler implementation class should be instantiated.createManager(PluginRegistry registry, PathResolver pathResolver) Creates new instance of plug-in manager.Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.protected StringgetImplClassName(Class<?> cls) Methods inherited from class org.java.plugin.ObjectFactory
createManager, newInstance, newInstance
-
Field Details
-
log
protected org.apache.commons.logging.Log log -
config
-
-
Constructor Details
-
StandardObjectFactory
public StandardObjectFactory()
-
-
Method Details
-
configure
Description copied from class:ObjectFactoryConfigures this factory instance. This method is called fromObjectFactory.newInstance(ExtendedProperties).- Specified by:
configurein classObjectFactory- Parameters:
configuration- factory configuration data, may benull- See Also:
-
getImplClassName
-
createClassInstance
protected Object createClassInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException -
createRegistry
Description copied from class:ObjectFactoryCreates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.- Specified by:
createRegistryin classObjectFactory- Returns:
- new registry instance
- See Also:
-
createPathResolver
Description copied from class:ObjectFactoryCreates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.- Specified by:
createPathResolverin classObjectFactory- Returns:
- new path resolver instance
- See Also:
-
createLifecycleHandler
Creates new instance of plug-in life cycle handler implementation class using standard discovery algorithm to determine which handler implementation class should be instantiated.- Returns:
- new plug-in life cycle handler instance
-
createManager
Description copied from class:ObjectFactoryCreates new instance of plug-in manager.- Specified by:
createManagerin classObjectFactory- Returns:
- new plug-in manager instance
- See Also:
-