| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.services.PropertiesFactory
public class PropertiesFactory
Simple ObjectFactory implementation to return a populated 
 java.util.Properties instance.
| Constructor Summary | |
|---|---|
| PropertiesFactory()Default constructor. | |
| Method Summary | |
|---|---|
|  void | destroy()Destroy this factory. | 
|  java.lang.Object | getInstance()Return the member properties instance. | 
|  java.lang.Object | getInstance(java.lang.ClassLoader loader)Return the member properties instance. | 
|  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 location of the Java properties file that will be used to populate the Properties instance. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PropertiesFactory()
| Method Detail | 
|---|
public void init(java.lang.String name,
                 java.lang.String confHome,
                 java.lang.String config)
          throws ServiceException
init in interface ObjectFactoryname - 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 location of the properties file.
                  This implementation supports relative and absolute
                  paths by prefixing the path with relative: or
                  absolute:.
ServiceException
public java.lang.Object getInstance()
                             throws ServiceException
getInstance in interface ObjectFactoryServiceException - if the Properties cannot be created.
public java.lang.Object getInstance(java.lang.ClassLoader loader)
                             throws ServiceException
getInstance in interface ObjectFactoryloader - ClassLoader instance.
ServiceException - if the Properties cannot be created.public java.lang.String getName()
getName in interface ObjectFactorypublic void destroy()
destroy in interface ObjectFactory| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||