|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the PropertyFactoryRegistry. Maintains a list of resource string to factory mappings.
Method Summary | |
JCPProperties |
getInstance(java.lang.String source)
Get an instance of JCPProperties from the default provider |
JCPProperties |
getInstance(java.lang.String source,
JCPProperties parentProperties)
Get an instance of JCPProperties from the default provider |
JCPProperties |
getInstance(java.lang.String resource,
java.lang.String source)
Get an instance of JCPProperties from a specific provider |
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 |
void |
registerPropertyFactory(JCPPropertyFactory factory)
Register a property factory |
void |
setDefaultPropertyFactory(JCPPropertyFactory factory)
Set the default property factory. |
Method Detail |
public 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 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 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 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 void registerPropertyFactory(JCPPropertyFactory factory)
factory
- the factory to registerpublic boolean isRegistered(java.lang.String resource)
resource
- the name of the resourcepublic void setDefaultPropertyFactory(JCPPropertyFactory factory) throws PropertyException
factory
- the factory to registerPropertyException
- if the default has already been set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |