01: package org.mockejb.interceptor;
02:
03: /**
04: * Aspect is the combination of an interceptor and pointcut.
05: * You want to implement Aspect interface when your interceptor
06: * can only handle the specific method/classes (jointpoints) and can't be used with any
07: * other pointcut.
08: * In case if Interceptor is truly universal (see, for example,
09: * {@link InvocationRecorder}) you can use the appropriate "add" method
10: * of the {@link AspectSystem} to combine the interceptor with any pointcut dynamically.
11: *
12: * @author Alexander Ananiev
13: */
14: public interface Aspect extends Interceptor {
15:
16: Pointcut getPointcut();
17: }
|