| java.lang.Object org.codehaus.aspectwerkz.aspect.AbstractAspectContainer
All known Subclasses: org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy, org.codehaus.aspectwerkz.transform.aopalliance.AopAllianceAspectContainer,
Method Summary | |
public Object | aspectOf() asm
Creates a new perJVM cross-cutting instance, if it already exists then return it. | public Object | aspectOf(Class klass) Creates a new perClass cross-cutting instance, if it already exists then return it. | public Object | aspectOf(Object instance) Creates a new perInstance cross-cutting instance, if it already exists then return it. | public Object | aspectOf(Thread thread) Creates a new perThread cross-cutting instance, if it already exists then return it. | abstract protected Object | createAspect() To be implemented by the concrete aspect containers. | public AspectContext | getContext() Returns the context. |
ARRAY_WITH_SINGLE_ASPECT_CONTEXT | final protected Object[] ARRAY_WITH_SINGLE_ASPECT_CONTEXT(Code) | | An array with the single aspect context, needed to save one array creation per invocation.
|
ASPECT_CONSTRUCTION_TYPE_ASPECT_CONTEXT | final public static int ASPECT_CONSTRUCTION_TYPE_ASPECT_CONTEXT(Code) | | |
ASPECT_CONSTRUCTION_TYPE_DEFAULT | final public static int ASPECT_CONSTRUCTION_TYPE_DEFAULT(Code) | | |
ASPECT_CONSTRUCTION_TYPE_UNKNOWN | final public static int ASPECT_CONSTRUCTION_TYPE_UNKNOWN(Code) | | |
EMPTY_OBJECT_ARRAY | final public static Object[] EMPTY_OBJECT_ARRAY(Code) | | |
m_adviceInfos | final protected Map m_adviceInfos(Code) | | Maps the advice infos to the hash codes of the the matching advice method.
|
m_aspectContext | final protected AspectContext m_aspectContext(Code) | | The aspect context prototype.
|
m_constructionType | protected int m_constructionType(Code) | | The aspect construction type.
|
m_perClass | final protected Map m_perClass(Code) | | Holds references to the per class aspect instances.
|
m_perInstance | final protected Map m_perInstance(Code) | | Holds references to the per instance aspect instances.
|
m_perJvm | protected Object m_perJvm(Code) | | Holds a reference to the sole per JVM aspect instance.
|
m_perThread | final protected Map m_perThread(Code) | | Holds references to the per thread aspect instances.
|
AbstractAspectContainer | public AbstractAspectContainer(AspectContext aspectContext)(Code) | | Creates a new aspect container strategy.
Parameters: aspectContext - the context |
aspectOf | public Object aspectOf()(Code) | | asm
Creates a new perJVM cross-cutting instance, if it already exists then return it.
the cross-cutting instance |
aspectOf | public Object aspectOf(Class klass)(Code) | | Creates a new perClass cross-cutting instance, if it already exists then return it.
Parameters: klass - the cross-cutting instance |
aspectOf | public Object aspectOf(Object instance)(Code) | | Creates a new perInstance cross-cutting instance, if it already exists then return it.
Parameters: instance - the cross-cutting instance |
aspectOf | public Object aspectOf(Thread thread)(Code) | | Creates a new perThread cross-cutting instance, if it already exists then return it.
Parameters: thread - the thread for the aspect the cross-cutting instance |
createAspect | abstract protected Object createAspect()(Code) | | To be implemented by the concrete aspect containers. Should return a new aspect instance.
a new aspect instance |
|
|