org.apache.cocoon.caching.impl
Class StoreEventRegistryImpl

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

Field Summary
 
Fields inherited from interface org.apache.cocoon.caching.EventRegistry
ROLE
 
Constructor Summary
StoreEventRegistryImpl()
           
 
Method Summary
 void parameterize(Parameters parameters)
           
protected  void persist(EventRegistryDataWrapper wrapper)
          An EventRegistry must persist its data.
protected  boolean recover()
          Recover the datawrapper from the Store.
 void service(ServiceManager manager)
          Obtain a reference to the Store
 
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 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
 

Constructor Detail

StoreEventRegistryImpl

public StoreEventRegistryImpl()
Method Detail

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.