Interface Aspect
- All Known Implementing Classes:
TraceAspect
public interface Aspect
Aspect.
use cases
- log
- monitoring
- transaction
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> returns Annotation that tagged any method or class concerned by this aspectinvoke(Object[] args, AspectMethodInvocation methodInvocation) Invoke method with this current aspect.
-
Method Details
-
invoke
Invoke method with this current aspect. Apply aspect then call sub method- Parameters:
args- method argumentsmethodInvocation- method invocation object- Returns:
- sub-method return
-
getAnnotationType
Class<? extends Annotation> getAnnotationType()returns Annotation that tagged any method or class concerned by this aspect- Returns:
- Annotation type.
-