org.apache.cocoon.portal.aspect.impl
Class MemoryAspectDataStore

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.aspect.impl.MemoryAspectDataStore
All Implemented Interfaces:
Component, LogEnabled, ThreadSafe, AspectDataStore

public class MemoryAspectDataStore
extends AbstractLogEnabled
implements Component, ThreadSafe, AspectDataStore

An aspect data store that holds the aspects in memory.

Version:
CVS $Id: MemoryAspectDataStore.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  Map objectMap
           
 
Fields inherited from interface org.apache.cocoon.portal.aspect.AspectDataStore
ROLE
 
Constructor Summary
MemoryAspectDataStore()
           
 
Method Summary
 Object getAspectData(Aspectalizable owner, String aspectName)
           
protected  Map getMap(Aspectalizable owner, boolean create)
          Get the aspect map for an object
 boolean isPersistent()
          Is the data persistent
 void setAspectData(Aspectalizable owner, String aspectName, Object data)
           
 
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

objectMap

protected final Map objectMap
Constructor Detail

MemoryAspectDataStore

public MemoryAspectDataStore()
Method Detail

getMap

protected Map getMap(Aspectalizable owner,
                     boolean create)
Get the aspect map for an object


getAspectData

public Object getAspectData(Aspectalizable owner,
                            String aspectName)
Specified by:
getAspectData in interface AspectDataStore

setAspectData

public void setAspectData(Aspectalizable owner,
                          String aspectName,
                          Object data)
Specified by:
setAspectData in interface AspectDataStore

isPersistent

public boolean isPersistent()
Description copied from interface: AspectDataStore
Is the data persistent

Specified by:
isPersistent in interface AspectDataStore


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.