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 ExtendedProperties
protected org.apache.commons.logging.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(ExtendedProperties configuration) Configures this factory instance.protected Object
createClassInstance
(String className) protected PluginLifecycleHandler
Creates 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 String
getImplClassName
(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:ObjectFactory
Configures this factory instance. This method is called fromObjectFactory.newInstance(ExtendedProperties)
.- Specified by:
configure
in 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:ObjectFactory
Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.- Specified by:
createRegistry
in classObjectFactory
- Returns:
- new registry instance
- See Also:
-
createPathResolver
Description copied from class:ObjectFactory
Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.- Specified by:
createPathResolver
in 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:ObjectFactory
Creates new instance of plug-in manager.- Specified by:
createManager
in classObjectFactory
- Parameters:
registry
-pathResolver
-- Returns:
- new plug-in manager instance
- See Also:
-