|
|||||||||||
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(Properties p)
Create an OSCache configuration with the specified properties. |
Method Summary | |
Object |
get(Object key)
|
Properties |
getProperties()
Retrieves all of the configuration properties. |
String |
getProperty(String key)
Retrieve the value of the named configuration property. |
void |
set(Object key,
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(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 String getProperty(String key)
null
.
key
- The name of the property.
null
if the value could
not be found.
IllegalArgumentException
- if the supplied key is null.public Properties getProperties()
public Object get(Object key)
public void set(Object key, Object value)
key
- The unique name for this property.value
- The value assigned to this property.
IllegalArgumentException
- if the supplied key is null.
|
OSCache Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |