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

java.lang.Object
  extended by org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
All Implemented Interfaces:
Cloneable, Aspectalizable
Direct Known Subclasses:
AbstractProducible

public abstract class AbstractAspectalizable
extends Object
implements Aspectalizable, Cloneable

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

Field Summary
protected  AspectDataHandler aspectDataHandler
           
protected  Map persistentDatas
           
 
Constructor Summary
AbstractAspectalizable()
           
 
Method Summary
 void addPersistentAspectData(String aspectName, Object data)
           
protected  Object clone()
           
 Object getAspectData(String aspectName)
          Get the data associated with an aspect
 Map getAspectDatas()
          Return all aspect datas
 Map getPersistentAspectData()
          Return all persistent aspect datas
 boolean isAspectSupported(String aspectName)
          Is this aspect supported
 void setAspectData(String aspectName, Object data)
          Set the data associated with an aspect The data is only set if the object is associated with the given aspect
 void setAspectDataHandler(AspectDataHandler handler)
          This method is invoked once to set the handler
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aspectDataHandler

protected transient AspectDataHandler aspectDataHandler

persistentDatas

protected transient Map persistentDatas
Constructor Detail

AbstractAspectalizable

public AbstractAspectalizable()
Method Detail

isAspectSupported

public boolean isAspectSupported(String aspectName)
Is this aspect supported

Specified by:
isAspectSupported in interface Aspectalizable

getAspectData

public Object getAspectData(String aspectName)
Description copied from interface: Aspectalizable
Get the data associated with an aspect

Specified by:
getAspectData in interface Aspectalizable
Parameters:
aspectName - The aspect name
Returns:
The data or null if the aspect is not associated with this object

setAspectData

public void setAspectData(String aspectName,
                          Object data)
Description copied from interface: Aspectalizable
Set the data associated with an aspect The data is only set if the object is associated with the given aspect

Specified by:
setAspectData in interface Aspectalizable
Parameters:
aspectName - The aspect name
data - The data

getAspectDatas

public Map getAspectDatas()
Description copied from interface: Aspectalizable
Return all aspect datas

Specified by:
getAspectDatas in interface Aspectalizable
Returns:
A map of data objects, the keys are built by the aspect names

getPersistentAspectData

public Map getPersistentAspectData()
Description copied from interface: Aspectalizable
Return all persistent aspect datas

Specified by:
getPersistentAspectData in interface Aspectalizable
Returns:
A map of data objects, the keys are built by the aspect names

setAspectDataHandler

public void setAspectDataHandler(AspectDataHandler handler)
This method is invoked once to set the handler

Specified by:
setAspectDataHandler in interface Aspectalizable

addPersistentAspectData

public void addPersistentAspectData(String aspectName,
                                    Object data)
Specified by:
addPersistentAspectData in interface Aspectalizable

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


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