| com.tc.aspectwerkz.aspect.AspectContainer
All known Subclasses: com.tc.aspectwerkz.aspect.AbstractAspectContainer,
AspectContainer | public interface AspectContainer (Code) | | Interface that all aspect container implementations must implement.
An implementation can have a no-arg constructor or a constructor with 5 args:
Class aspectClass, ClassLoader aopSystemClassLoader, String systemUuid, String aspectQualifiedName (composed of systemUuid and given aspect name
in the aop.xml that defines it), Map (of parameters declared in the aop.xml for this aspect declaration).
An Aspect can have no aspect container at all. In such a case, the aspect is simply created using its no-arg
constructor (thus in a faster way).
Note that the container will only be invoked for aspect instantiation, but not for aspect lookup (association).
The lookup is handled by the deployment model semantics and thus by the framework.
author: Jonas BonŽr author: Alexandre Vasseur |
Method Summary | |
Object | aspectOf() Creates a new perJVM cross-cutting instance, if it already exists then return it. | Object | aspectOf(Class klass) Creates a new perClass cross-cutting instance, if it already exists then return it. | Object | aspectOf(Object instance) Creates a new perInstance cross-cutting instance, if it already exists then return it. | Object | aspectOf(Thread thread) Creates a new perThread cross-cutting instance, if it already exists then return it. |
aspectOf | Object aspectOf()(Code) | | Creates a new perJVM cross-cutting instance, if it already exists then return it.
the cross-cutting instance |
aspectOf | 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 | 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 | 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 |
|
|