|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.base.Config
Responsible for holding the Cache configuration properties. If the default
constructor is used, this class will load the properties from the
cache.configuration
.
Constructor Summary | |
Config()
Create an OSCache Config that loads properties from oscache.properties. |
|
Config(java.util.Properties p)
Create an OSCache configuration with the specified properties. |
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
|
java.util.Properties |
getProperties()
Retrieves all of the configuration properties. |
java.lang.String |
getProperty(java.lang.String key)
Retrieve the value of the named configuration property. |
void |
set(java.lang.Object key,
java.lang.Object value)
Sets a configuration property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Config()
public Config(java.util.Properties p)
p
- The properties to use for this configuration. If null,
then the default properties are loaded from the oscache.properties
file.Method Detail |
public java.lang.String getProperty(java.lang.String key)
null
.
key
- The name of the property.
null
if the value could
not be found.
java.lang.IllegalArgumentException
- if the supplied key is null.public java.util.Properties getProperties()
public java.lang.Object get(java.lang.Object key)
public void set(java.lang.Object key, java.lang.Object value)
key
- The unique name for this property.value
- The value assigned to this property.
java.lang.IllegalArgumentException
- if the supplied key is null.
|
See www.opensymphony.com for more information. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |