| org.mockejb.interceptor.AspectSystem
All known Subclasses: org.mockejb.interceptor.AspectSystemImpl,
AspectSystem | public interface AspectSystem (Code) | | Keeps the global list of aspects.
Identifies the relevant aspects and interceptors
for the given jointpoint.
author: Alexander Ananiev |
Method Summary | |
void | add(Aspect aspect) Adds the given aspect to the end of the global list of aspects. | void | add(Pointcut pointcut, Interceptor interceptor) Creates the new aspect and adds it to the end of the list of aspects. | void | addFirst(Aspect aspect) Inserts the given aspect in the beginning of the list of aspects. | void | addFirst(Pointcut pointcut, Interceptor interceptor) Creates the new aspect from the given pointcut and the interceptor
and inserts it in the beginning of the list of aspects. | void | clear() | List | findInterceptors(Method proxyMethod, Method targetMethod) Identifiesaspects whose pointcut matches the given source method or
target method. | List | getAspectList() Returns the list of aspects to the client. |
add | void add(Aspect aspect)(Code) | | Adds the given aspect to the end of the global list of aspects.
Parameters: aspect - aspect to add |
add | void add(Pointcut pointcut, Interceptor interceptor)(Code) | | Creates the new aspect and adds it to the end of the list of aspects.
Parameters: pointcut - pointcut of the aspect Parameters: interceptor - interceptor of the aspect |
addFirst | void addFirst(Aspect aspect)(Code) | | Inserts the given aspect in the beginning of the list of aspects.
If you want an interceptor for a given pointcut to be called
before other interceptors for the same pointcut, you can use this method.
Parameters: aspect - aspect to add |
addFirst | void addFirst(Pointcut pointcut, Interceptor interceptor)(Code) | | Creates the new aspect from the given pointcut and the interceptor
and inserts it in the beginning of the list of aspects.
If you want an interceptor for a given pointcut to be called
before other interceptors for the same pointcut, you can use this method.
Parameters: pointcut - pointcut of the aspect Parameters: interceptor - interceptor of the aspect |
clear | void clear()(Code) | | Clears the aspect list
|
findInterceptors | List findInterceptors(Method proxyMethod, Method targetMethod)(Code) | | Identifiesaspects whose pointcut matches the given source method or
target method. Returns the list of the interceptors for the matching
pointcuts.
Parameters: proxyMethod - method invoked by the client on the proxy (interface method) Parameters: targetMethod - target method which will be called as the result of the proxy method list of the interceptors for the matching pointcuts |
getAspectList | List getAspectList()(Code) | | Returns the list of aspects to the client. Clients can
manipulate the list.
the list of aspects |
|
|