Package org.java.plugin.standard
Class StandardObjectFactory
- java.lang.Object
-
- org.java.plugin.ObjectFactory
-
- org.java.plugin.standard.StandardObjectFactory
-
public class StandardObjectFactory extends ObjectFactory
Standard object factory implementation.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description protected ExtendedProperties
config
protected org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description StandardObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(ExtendedProperties configuration)
Configures this factory instance.protected java.lang.Object
createClassInstance(java.lang.String className)
protected PluginLifecycleHandler
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.PluginManager
createManager(PluginRegistry registry, PathResolver pathResolver)
Creates new instance of plug-in manager.PathResolver
createPathResolver()
Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.PluginRegistry
createRegistry()
Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated.protected java.lang.String
getImplClassName(java.lang.Class<?> cls)
-
Methods inherited from class org.java.plugin.ObjectFactory
createManager, newInstance, newInstance
-
-
-
-
Field Detail
-
log
protected org.apache.commons.logging.Log log
-
config
protected ExtendedProperties config
-
-
Method Detail
-
configure
protected void configure(ExtendedProperties configuration)
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:
ObjectFactory.configure(ExtendedProperties)
-
getImplClassName
protected java.lang.String getImplClassName(java.lang.Class<?> cls)
-
createClassInstance
protected java.lang.Object createClassInstance(java.lang.String className) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
-
createRegistry
public PluginRegistry 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:
ObjectFactory.createRegistry()
-
createPathResolver
public PathResolver 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:
ObjectFactory.createPathResolver()
-
createLifecycleHandler
protected PluginLifecycleHandler 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
public PluginManager createManager(PluginRegistry registry, PathResolver pathResolver)
Description copied from class:ObjectFactory
Creates new instance of plug-in manager.- Specified by:
createManager
in classObjectFactory
- Returns:
- new plug-in manager instance
- See Also:
ObjectFactory.createManager( org.java.plugin.registry.PluginRegistry, org.java.plugin.PathResolver)
-
-