Package com.google.inject.internal
Class MethodAspect
java.lang.Object
com.google.inject.internal.MethodAspect
Ties a matcher to a method interceptor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodAspect
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, List<org.aopalliance.intercept.MethodInterceptor> interceptors) MethodAspect
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) -
Method Summary
Modifier and TypeMethodDescription(package private) static MethodAspect
fromBinding
(InterceptorBinding binding) (package private) List<org.aopalliance.intercept.MethodInterceptor>
(package private) boolean
(package private) boolean
-
Field Details
-
classMatcher
-
methodMatcher
-
interceptors
-
-
Constructor Details
-
MethodAspect
MethodAspect(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, 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
-
MethodAspect
-
-
Method Details
-
fromBinding
-
matches
-
matches
-
interceptors
List<org.aopalliance.intercept.MethodInterceptor> interceptors()
-