| java.lang.Object com.tc.aspectwerkz.aspect.AbstractAspectContainer
All known Subclasses: com.tcspring.SpringAspectContainer, com.tc.aspectwerkz.aspect.DefaultAspectContainerStrategy,
AbstractAspectContainer | abstract public class AbstractAspectContainer implements AspectContainer(Code) | | Abstract base class for an aspect container implementations that is passing an AspectContext when
creating the aspect instance if there is such a single arg constructor in the aspect.
Provides support for getting the AspectDefinition.
Can be used as a base class for user defined container.
author: Jonas BonŽr author: Alexandre Vasseur |
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_constructionType | protected int m_constructionType(Code) | | The aspect construction type. Defaults to unknown
|
AbstractAspectContainer | public AbstractAspectContainer(Class aspectClass, ClassLoader aopSystemClassLoader, String uuid, String qualifiedName, Map parameters)(Code) | | Create a new container
Parameters: aspectClass - Parameters: aopSystemClassLoader - the classloader of the defining system (not necessary the one of the aspect class) Parameters: uuid - Parameters: qualifiedName - Parameters: parameters - |
createAspect | abstract protected Object createAspect(AspectContext aspectContext)(Code) | | To be implemented by the concrete aspect containers.
Should return a new aspect instance.
a new aspect instance |
getAspectClass | public Class getAspectClass()(Code) | | Returns the aspect class
the aspect class |
getAspectDefinition | public AspectDefinition getAspectDefinition()(Code) | | Lazy getter for the aspect definition
the aspect definition |
getContext | protected AspectContext getContext(Object associated)(Code) | | Create a new AspectContext associated with the given instance (class/instance/thread/null)
Parameters: associated - the context |
getDefiningSystemClassLoader | public ClassLoader getDefiningSystemClassLoader()(Code) | | the classloader of the system defining the aspect handled by that container instance |
|
|