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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.aspect.impl.TemporaryAspectDataStore
All Implemented Interfaces:
Component, Contextualizable, LogEnabled, Serviceable, ThreadSafe, AspectDataStore
Direct Known Subclasses:
RequestAspectDataStore

public class TemporaryAspectDataStore
extends AbstractLogEnabled
implements Component, Serviceable, ThreadSafe, AspectDataStore, Contextualizable

An aspect data store is a component that manages aspect data objects. This store holds the data for the current request.

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

Field Summary
protected  Context context
           
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.aspect.AspectDataStore
ROLE
 
Constructor Summary
TemporaryAspectDataStore()
           
 
Method Summary
 void contextualize(Context context)
           
 Object getAspectData(Aspectalizable owner, String aspectName)
           
protected  Map getMap(Aspectalizable owner)
           
 boolean isPersistent()
          Is the data persistent
 void service(ServiceManager manager)
           
 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

context

protected Context context

manager

protected ServiceManager manager
Constructor Detail

TemporaryAspectDataStore

public TemporaryAspectDataStore()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

getMap

protected Map getMap(Aspectalizable owner)

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

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


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