|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.service.impl.ConfigurationServiceImpl.PropertyHolder
protected static class ConfigurationServiceImpl.PropertyHolder
This class is a Property container. It is able to load properties from various property-sources.
| Constructor Summary | |
|---|---|
ConfigurationServiceImpl.PropertyHolder()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clearProperties()
Removes all properties from this container. |
void |
clearProperty(String key)
Removes the property with the given key from this container |
boolean |
containsKey(String key)
|
Properties |
getHeldProperties()
|
Iterator |
getKeys()
|
String |
getProperty(String key)
|
boolean |
isEmpty()
|
void |
loadProperties(ConfigurationServiceImpl.PropertySource source)
Copies all name,value pairs from the given PropertySource instance into this container. |
void |
setHeldProperties(Properties heldProperties)
|
void |
setProperty(ConfigurationServiceImpl.PropertySource source,
String key,
String value)
Associates the given value with the given key |
void |
setProperty(String key,
String value)
Associates the given value with the given key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationServiceImpl.PropertyHolder()
| Method Detail |
|---|
public boolean isEmpty()
public boolean containsKey(String key)
key -
IllegalArgumentException - if the given key is nullpublic String getProperty(String key)
key -
IllegalArgumentException - if the given key is null
public void setProperty(String key,
String value)
key - value -
IllegalArgumentException - if the given key is null
IllegalArgumentException - if the given value is null
DuplicateKeyException - if a property with the given key already exists
public void setProperty(ConfigurationServiceImpl.PropertySource source,
String key,
String value)
source - key - value -
IllegalArgumentException - if the given key is null
IllegalArgumentException - if the given value is null
DuplicateKeyException - if a property with the given key already existspublic void clearProperty(String key)
key -
IllegalArgumentException - if the given key is nullpublic void loadProperties(ConfigurationServiceImpl.PropertySource source)
source -
IllegalStateException - if the source is invalid (improperly initialized)
DuplicateKeyException - the first time a given property has the same key
as an existing property
PropertiesException - if unable to load properties from the given sourcepublic void clearProperties()
public Iterator getKeys()
public Properties getHeldProperties()
public void setHeldProperties(Properties heldProperties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||