|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.configuration.BasicPropertySource
Common behavior that should help all PropertySource concrete classes.
Field Summary | |
protected ConfigurationService |
configurationService
|
protected java.lang.String |
name
|
Constructor Summary | |
BasicPropertySource()
Constructor for the BasicPropertySource object |
Method Summary | |
java.lang.String |
getCategoryId()
Get the default category id that would be generated for this object. |
java.lang.Object |
getConfigObject()
A convience method. |
java.lang.Object |
getConfigurationInstance()
The result of this method will be cast the appropriate type by the concrete subclass implementations. |
java.lang.Object |
getConfigurationInstance(java.lang.String category)
The result of this method will be cast the appropriate type by the concrete subclass implementations. |
protected ConfigurationService |
getConfigurationService()
Either get the default service, or the one overridden in my instance var. |
java.lang.String |
getName()
A single property source may be used to managed a list several instances of property detail. |
void |
setConfigurationService(ConfigurationService config)
Set this value to force this property source to use the specified configuration service, otherwise use the default configuration service. |
void |
setName(java.lang.String nameValue)
Support named instances. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.objectwave.configuration.PropertySource |
getExpectedClass |
Field Detail |
protected ConfigurationService configurationService
protected java.lang.String name
Constructor Detail |
public BasicPropertySource()
Method Detail |
public java.lang.String getCategoryId()
public java.lang.Object getConfigObject()
public java.lang.Object getConfigurationInstance(java.lang.String category) throws ConfigurationException
category
- Get the configuration instance that is specific to this
class and the specified category.
ConfigurationException
public java.lang.Object getConfigurationInstance() throws ConfigurationException
ConfigurationException
protected ConfigurationService getConfigurationService()
public java.lang.String getName()
getName
in interface PropertySource
public void setName(java.lang.String nameValue)
nameValue
- null is legal valuepublic void setConfigurationService(ConfigurationService config)
config
- The new ConfigurationService value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |