public abstract class ObjectFactory extends Object
Constructor and Description |
---|
ObjectFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 null
public final PluginManager createManager()
createRegistry()
,
createPathResolver()
public abstract PluginManager createManager(PluginRegistry registry, PathResolver pathResolver)
registry
- pathResolver
- public abstract PluginRegistry createRegistry()
public abstract PathResolver createPathResolver()
Copyright © 2016. All Rights Reserved.