Package com.google.inject.internal
Class MethodAspect
- java.lang.Object
-
- com.google.inject.internal.MethodAspect
-
final class MethodAspect extends java.lang.ObjectTies a matcher to a method interceptor.
-
-
Field Summary
Fields Modifier and Type Field Description private Matcher<? super java.lang.Class<?>>classMatcherprivate java.util.List<org.aopalliance.intercept.MethodInterceptor>interceptorsprivate Matcher<? super java.lang.reflect.Method>methodMatcher
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.List<org.aopalliance.intercept.MethodInterceptor>interceptors()(package private) booleanmatches(java.lang.Class<?> clazz)(package private) booleanmatches(java.lang.reflect.Method method)
-
-
-
Constructor Detail
-
MethodAspect
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher, Matcher<? super java.lang.reflect.Method> methodMatcher, java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors)
- Parameters:
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
-
-