Interface Aspect
-
- All Known Implementing Classes:
AnalyticsAspect
public interface AspectAspect. use cases - log - monitoring - transaction- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<? extends Annotation>getAnnotationType()returns Annotation that tagged any method or class concerned by this aspectObjectinvoke(Object[] args, AspectMethodInvocation methodInvocation)Invoke method with this current aspect.
-
-
-
Method Detail
-
invoke
Object invoke(Object[] args, AspectMethodInvocation methodInvocation)
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.
-
-