| 
 | JPF 1.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.java.plugin.ObjectFactory
public abstract class ObjectFactory
Factory class to help creating base Framework objects: plug-in registry, path resolver and plug-in manager.
| Constructor Summary | |
|---|---|
| ObjectFactory() | |
| Method Summary | |
|---|---|
| protected abstract  void | configure(ExtendedProperties config)Configures this factory instance. | 
|  PluginManager | createManager()Creates new instance of plug-in manager using new instances of registry and path resolver. | 
| abstract  PluginManager | createManager(PluginRegistry registry,
              PathResolver pathResolver)Creates new instance of plug-in manager. | 
| abstract  PathResolver | createPathResolver()Creates new instance of path resolver implementation class using standard discovery algorithm to determine which resolver implementation class should be instantiated. | 
| abstract  PluginRegistry | createRegistry()Creates new instance of plug-in registry implementation class using standard discovery algorithm to determine which registry implementation class should be instantiated. | 
| static ObjectFactory | newInstance()Creates and configures new instance of object factory. | 
| static ObjectFactory | newInstance(ExtendedProperties config)Creates and configures new instance of object factory. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ObjectFactory()
| Method Detail | 
|---|
public static ObjectFactory newInstance()
newInstance(ExtendedProperties)public static ObjectFactory newInstance(ExtendedProperties config)
org.java.plugin.ObjectFactory property from
 the given properties collection (if it is provided).org.java.plugin.ObjectFactory system
 property.java.util.Properties format and contains among others the
 fully qualified name of the implementation class with the key being the
 system property defined above.META-INF/services/org.java.plugin.ObjectFactory in jars
 available to the runtime.ObjectFactory implementation.
config - factory configuration data, may be null
protected abstract void configure(ExtendedProperties config)
newInstance(ExtendedProperties).
config - factory configuration data, may be nullpublic final PluginManager createManager()
createRegistry(), 
createPathResolver()
public abstract PluginManager createManager(PluginRegistry registry,
                                            PathResolver pathResolver)
registry - pathResolver - 
public abstract PluginRegistry createRegistry()
public abstract PathResolver createPathResolver()
| 
 | JPF 1.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||