|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectFactory
Interface that defines a generic mechanism for developing custom Object Factories.
Method Summary | |
---|---|
void |
destroy()
Destroy this factory. |
java.lang.Object |
getInstance()
Create a new instance of the target Object for this factory. |
java.lang.Object |
getInstance(java.lang.ClassLoader loader)
Create a new instance of the target Object for this factory using the given ClassLoader. |
java.lang.String |
getName()
Return the name of this factory. |
void |
init(java.lang.String name,
java.lang.String confHome,
java.lang.String config)
Initialise the factory with the given name identifier and configuration location. |
Method Detail |
---|
void init(java.lang.String name, java.lang.String confHome, java.lang.String config) throws ServiceException
name
- String containing a unique identifier for this factory.confHome
- String containing the path to the services configuration
home directory for the service registry where this
ObjectFactory lives.config
- String containing the configuration location for this
this factory.
ServiceException
java.lang.Object getInstance() throws ServiceException
ServiceException
- if the Object cannot be created.java.lang.Object getInstance(java.lang.ClassLoader loader) throws ServiceException
loader
- ClassLoader to use when creating the Object instance.
ServiceException
- if the Object cannot be created.java.lang.String getName()
void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |