final class MethodAspect
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Matcher<? super java.lang.Class<?>> |
classMatcher |
private java.util.List<org.aopalliance.intercept.MethodInterceptor> |
interceptors |
private Matcher<? super java.lang.reflect.Method> |
methodMatcher |
| Constructor and Description |
|---|
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors) |
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.List<org.aopalliance.intercept.MethodInterceptor> |
interceptors() |
(package private) boolean |
matches(java.lang.Class<?> clazz) |
(package private) boolean |
matches(java.lang.reflect.Method method) |
private final Matcher<? super java.lang.Class<?>> classMatcher
private final Matcher<? super java.lang.reflect.Method> methodMatcher
private final java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher, Matcher<? super java.lang.reflect.Method> methodMatcher, java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors)
classMatcher - matches classes the interceptor should apply to. For example: only(Runnable.class).methodMatcher - matches methods the interceptor should apply to. For example: annotatedWith(Transactional.class).interceptors - to apply