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 ExtendedPropertiesconfigprotected org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description StandardObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(ExtendedProperties configuration)Configures this factory instance.protected java.lang.ObjectcreateClassInstance(java.lang.String className)protected PluginLifecycleHandlercreateLifecycleHandler()Creates new instance of plug-in life cycle handler implementation class using standard discovery algorithm to determine which handler implementation class should be instantiated.PluginManagercreateManager(PluginRegistry registry, PathResolver pathResolver)Creates new instance of plug-in manager.PathResolvercreatePathResolver()Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated.PluginRegistrycreateRegistry()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.StringgetImplClassName(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:ObjectFactoryConfigures this factory instance. This method is called fromObjectFactory.newInstance(ExtendedProperties).- Specified by:
configurein 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.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundException
-
createRegistry
public PluginRegistry 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:
ObjectFactory.createRegistry()
-
createPathResolver
public PathResolver 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:
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:ObjectFactoryCreates new instance of plug-in manager.- Specified by:
createManagerin classObjectFactory- Returns:
- new plug-in manager instance
- See Also:
ObjectFactory.createManager( org.java.plugin.registry.PluginRegistry, org.java.plugin.PathResolver)
-
-