org.apache.cocoon.components.store.impl
Class JCSDefaultStore

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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 $

Field Summary
protected  Properties properties
          The JCS configuration properties
protected  String region
          The JCS region name
 
Fields inherited from interface org.apache.excalibur.store.Store
PERSISTENT_STORE, ROLE, TRANSIENT_STORE
 
Constructor Summary
JCSDefaultStore()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 void contextualize(Context aContext)
           
 void dispose()
           
 void free()
           
 Object get(Object key)
           
protected  String getDefaultPropertiesFile()
           
 void initialize()
           
 Enumeration keys()
           
 void parameterize(Parameters parameters)
           
 void remove(Object key)
           
 void service(ServiceManager aManager)
           
 int size()
           
 void store(Object key, Object value)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Properties properties
The JCS configuration properties


region

protected String region
The JCS region name

Constructor Detail

JCSDefaultStore

public JCSDefaultStore()
Method Detail

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.