org.apache.cocoon.components.store.impl
Class JCSDefaultStore
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.store.impl.JCSDefaultStore
- All Implemented Interfaces:
- Disposable, Initializable, Component, Contextualizable, LogEnabled, Parameterizable, Serviceable, ThreadSafe, Store
public class JCSDefaultStore
- extends AbstractLogEnabled
- implements Store, Contextualizable, Parameterizable, Initializable, Disposable, ThreadSafe, Serviceable
This is the default store implementation based on JCS
http://jakarta.apache.org/jcs/BasicJCSConfiguration.html
- Version:
- $Id: JCSDefaultStore.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected Properties properties
- The JCS configuration properties
region
protected String region
- The JCS region name
JCSDefaultStore
public JCSDefaultStore()
contextualize
public void contextualize(Context aContext)
throws ContextException
- Specified by:
contextualize
in interface Contextualizable
- Throws:
ContextException
service
public void service(ServiceManager aManager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
parameterize
public void parameterize(Parameters parameters)
throws ParameterException
- Specified by:
parameterize
in interface Parameterizable
- Throws:
ParameterException
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
getDefaultPropertiesFile
protected String getDefaultPropertiesFile()
get
public Object get(Object key)
- Specified by:
get
in interface Store
store
public void store(Object key,
Object value)
throws IOException
- Specified by:
store
in interface Store
- Throws:
IOException
free
public void free()
- Specified by:
free
in interface Store
clear
public void clear()
- Specified by:
clear
in interface Store
remove
public void remove(Object key)
- Specified by:
remove
in interface Store
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Store
keys
public Enumeration keys()
- Specified by:
keys
in interface Store
size
public int size()
- Specified by:
size
in interface Store
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.