org.mockejb.interceptor
Interface Aspect
- All Superinterfaces:
- Interceptor
- All Known Implementing Classes:
- BMPFinderHandler, CMPFindByPrimaryKeyHandler, EjbExceptionHandler
- public interface Aspect
- extends Interceptor
Aspect is the combination of an interceptor and pointcut.
You want to implement Aspect interface when your interceptor
can only handle the specific method/classes (jointpoints) and can't be used with any
other pointcut.
In case if Interceptor is truly universal (see, for example,
InvocationRecorder
) you can use the appropriate "add" method
of the AspectSystem
to combine the interceptor with any pointcut dynamically.
- Author:
- Alexander Ananiev
getPointcut
public Pointcut getPointcut()