org.kuali.rice.core.impl.services
Class ConfigurationServiceImpl.PropertyHolder

java.lang.Object
  extended by org.kuali.rice.core.impl.services.ConfigurationServiceImpl.PropertyHolder
Enclosing class:
ConfigurationServiceImpl

protected static class ConfigurationServiceImpl.PropertyHolder
extends Object

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

ConfigurationServiceImpl.PropertyHolder

public ConfigurationServiceImpl.PropertyHolder()
Default constructor.

Method Detail

isEmpty

public boolean isEmpty()
Returns:
true if this container currently has no properties

containsKey

public boolean containsKey(String key)
Parameters:
key -
Returns:
true if a property with the given key exists in this container
Throws:
IllegalArgumentException - if the given key is null

getProperty

public String getProperty(String key)
Parameters:
key -
Returns:
the current value of the property with the given key, or null if no property exists with that key
Throws:
IllegalArgumentException - if the given key is null

setProperty

public void setProperty(String key,
                        String value)
Associates the given value with the given key

Parameters:
key -
value -
Throws:
IllegalArgumentException - if the given key is null
IllegalArgumentException - if the given value is null

setProperty

public void setProperty(ConfigurationServiceImpl.PropertySource source,
                        String key,
                        String value)
Associates the given value with the given key

Parameters:
source -
key -
value -
Throws:
IllegalArgumentException - if the given key is null
IllegalArgumentException - if the given value is null

clearProperty

public void clearProperty(String key)
Removes the property with the given key from this container

Parameters:
key -
Throws:
IllegalArgumentException - if the given key is null

loadProperties

public void loadProperties(ConfigurationServiceImpl.PropertySource source)
Copies all name,value pairs from the given PropertySource instance into this container.

Parameters:
source -
Throws:
IllegalStateException - if the source is invalid (improperly initialized) as an existing property

clearProperties

public void clearProperties()
Removes all properties from this container.


getKeys

public Iterator getKeys()
Returns:
iterator over the keys of all properties in this container

getHeldProperties

public Properties getHeldProperties()

setHeldProperties

public void setHeldProperties(Properties heldProperties)


Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.