Top Description Fields Constructors Methods
com.google.inject.internal

pack-priv final Class MethodAspect

extends Object
Class Inheritance
Static Imports
com.google.common.base.Preconditions.checkNotNull

Ties a matcher to a method interceptor.
Author
[email protected] (Bob Lee)

Field Summary

Modifier and TypeField and Description
private final Matcher<? super Class<?>>
private final List<MethodInterceptor>
private final Matcher<? super Method>

Constructor Summary

AccessConstructor and Description
pack-priv
MethodAspect(Matcher<? super Class<?>>
matches classes the interceptor should apply to. For example: only(Runnable.class).
classMatcher
,
Matcher<? super Method>
matches methods the interceptor should apply to. For example: annotatedWith(Transactional.class).
methodMatcher
,
List<MethodInterceptor>
to apply
interceptors
)

pack-priv
MethodAspect(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor... interceptors)

Method Summary

Modifier and TypeMethod and Description
pack-priv static MethodAspect
pack-priv List<MethodInterceptor>
pack-priv boolean
matches(Class<?> clazz)

pack-priv boolean
matches(Method method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classMatcherback to summary
private final Matcher<? super Class<?>> classMatcher
interceptorsback to summary
private final List<MethodInterceptor> interceptors
methodMatcherback to summary
private final Matcher<? super Method> methodMatcher

Constructor Detail

MethodAspectback to summary
pack-priv MethodAspect(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, List<MethodInterceptor> interceptors)
Parameters
classMatcher:Matcher<? super Class<?>>

matches classes the interceptor should apply to. For example: only(Runnable.class).

methodMatcher:Matcher<? super Method>

matches methods the interceptor should apply to. For example: annotatedWith(Transactional.class).

interceptors:List<MethodInterceptor>

to apply

MethodAspectback to summary
pack-priv MethodAspect(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor... interceptors)

Method Detail

fromBindingback to summary
pack-priv static MethodAspect fromBinding(InterceptorBinding binding)
interceptorsback to summary
pack-priv List<MethodInterceptor> interceptors()
matchesback to summary
pack-priv boolean matches(Class<?> clazz)
matchesback to summary
pack-priv boolean matches(Method method)