public interface AspectSystem
Modifier and Type | Method and Description |
---|---|
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()
Clears the aspect list
|
java.util.List |
findInterceptors(java.lang.reflect.Method proxyMethod,
java.lang.reflect.Method targetMethod)
Identifiesaspects whose pointcut matches the given source method or
target method.
|
java.util.List |
getAspectList()
Returns the list of aspects to the client.
|
void add(Aspect aspect)
aspect
- aspect to addvoid addFirst(Aspect aspect)
aspect
- aspect to addvoid add(Pointcut pointcut, Interceptor interceptor)
pointcut
- pointcut of the aspectinterceptor
- interceptor of the aspectvoid addFirst(Pointcut pointcut, Interceptor interceptor)
pointcut
- pointcut of the aspectinterceptor
- interceptor of the aspectjava.util.List getAspectList()
java.util.List findInterceptors(java.lang.reflect.Method proxyMethod, java.lang.reflect.Method targetMethod)
proxyMethod
- method invoked by the client on the proxy (interface method)targetMethod
- target method which will be called as the result of the proxy methodvoid clear()