public class StandardObjectFactory extends ObjectFactory
| Modifier and Type | Field and Description |
|---|---|
protected ExtendedProperties |
config |
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
StandardObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(ExtendedProperties configuration)
Configures this factory instance.
|
protected Object |
createClassInstance(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 String |
getImplClassName(Class<?> cls) |
createManager, newInstance, newInstanceprotected org.apache.commons.logging.Log log
protected ExtendedProperties config
protected void configure(ExtendedProperties configuration)
ObjectFactoryObjectFactory.newInstance(ExtendedProperties).configure in class ObjectFactoryconfiguration - factory configuration data, may be nullObjectFactory.configure(ExtendedProperties)protected Object createClassInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public PluginRegistry createRegistry()
ObjectFactorycreateRegistry in class ObjectFactoryObjectFactory.createRegistry()public PathResolver createPathResolver()
ObjectFactorycreatePathResolver in class ObjectFactoryObjectFactory.createPathResolver()protected PluginLifecycleHandler createLifecycleHandler()
public PluginManager createManager(PluginRegistry registry, PathResolver pathResolver)
ObjectFactorycreateManager in class ObjectFactoryObjectFactory.createManager(
org.java.plugin.registry.PluginRegistry,
org.java.plugin.PathResolver)Copyright © 2016. All rights reserved.