org.apache.cocoon.caching.impl
Class StoreEventRegistryImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.caching.impl.AbstractDoubleMapEventRegistry
org.apache.cocoon.caching.impl.StoreEventRegistryImpl
- All Implemented Interfaces:
- Disposable, Initializable, Component, LogEnabled, Parameterizable, Serviceable, ThreadSafe, EventRegistry
public class StoreEventRegistryImpl
- extends AbstractDoubleMapEventRegistry
- implements Serviceable, Parameterizable
This implementation of EventRegistry
stores its EventRegistryDataWrapper
in the default Store
defined in cocoon.xconf.
- Since:
- 2.1
- Version:
- CVS $Id: StoreEventRegistryImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Geoff Howard
Methods inherited from class org.apache.cocoon.caching.impl.AbstractDoubleMapEventRegistry |
allKeys, clear, createBlankCache, createMultiMaps, dispose, initialize, keysForEvent, register, removeKey, unwrapRegistry, wasRecoverySuccessful, wrapRegistry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreEventRegistryImpl
public StoreEventRegistryImpl()
parameterize
public void parameterize(Parameters parameters)
throws ParameterException
- Specified by:
parameterize
in interface Parameterizable
- Throws:
ParameterException
persist
protected void persist(EventRegistryDataWrapper wrapper)
- Description copied from class:
AbstractDoubleMapEventRegistry
- An EventRegistry must persist its data.
- Specified by:
persist
in class AbstractDoubleMapEventRegistry
service
public void service(ServiceManager manager)
throws ServiceException
- Obtain a reference to the Store
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
recover
protected boolean recover()
- Recover the datawrapper from the Store.
- Specified by:
recover
in class AbstractDoubleMapEventRegistry
- Returns:
- boolean to signal success or failure of recovery.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.