|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.jcp.util.properties.PropertyManager
Contains a set of static accessor methods for using a PropertyFactoryRegistry
Method Summary | |
static JCPProperties |
getInstance(java.lang.String source)
Get an instance of JCPProperties from the default provider |
static JCPProperties |
getInstance(java.lang.String source,
JCPProperties parentProperties)
Get an instance of JCPProperties from the default provider |
static JCPProperties |
getInstance(java.lang.String resource,
java.lang.String source)
Get an instance of JCPProperties from a specific provider |
static JCPProperties |
getInstance(java.lang.String resource,
java.lang.String source,
JCPProperties parentProperties)
Get an instance of JCPProperties from a specific provider |
boolean |
isRegistered(java.lang.String resource)
Determine if the property factory for the named rsource has been registered |
static void |
registerPropertyFactory(JCPPropertyFactory factory)
Register a property factory |
static void |
setDefaultPropertyFactory(JCPPropertyFactory factory)
Set the default property factory. |
static void |
setRegistry(JCPPropertyFactoryRegistry registry)
Set the registry instance that the manager uses |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void setRegistry(JCPPropertyFactoryRegistry registry)
public static JCPProperties getInstance(java.lang.String source) throws PropertyException
source
- the identifier for the property source (e.g. a filename)PropertyException
- if the instance couple not be createdpublic static JCPProperties getInstance(java.lang.String source, JCPProperties parentProperties) throws PropertyException
source
- the identifier for the property source (e.g. a filename)parentProperties
- another properties object from which the new object will inherit valuesPropertyException
- if the instance couple not be createdpublic static JCPProperties getInstance(java.lang.String resource, java.lang.String source) throws PropertyException
resource
- the identifier for the property resource (e.g. "INI")source
- the identifier for the property source (e.g. a filename)PropertyException
- if the instance couple not be createdpublic static JCPProperties getInstance(java.lang.String resource, java.lang.String source, JCPProperties parentProperties) throws PropertyException
resource
- the identifier for the property resource (e.g. "INI")source
- the identifier for the property source (e.g. a filename)parentProperties
- another properties object from which the new object will inherit valuesPropertyException
- if the instance couple not be createdpublic static void registerPropertyFactory(JCPPropertyFactory factory)
factory
- the factory to registerpublic static void setDefaultPropertyFactory(JCPPropertyFactory factory) throws PropertyException
factory
- the factory to registerPropertyException
- if the default has already been setpublic boolean isRegistered(java.lang.String resource)
resource
- the name of the resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |