bindInterceptor() statements:
bindInterceptor(Matchers.subclassesOf(MyAction.class),
Matchers.annotatedWith(Transactional.class),
new MyTransactionInterceptor());
or from an injectable type listener using TypeEncounter.bindInterceptor() .
| Modifier and Type | Field and Description |
|---|---|
| private final Matcher | |
| private final ImmutableList | |
| private final Matcher | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | InterceptorBinding(Object source, Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor[] interceptors)
|
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | acceptVisitor(ElementVisitor<T>
to call back on visitor)Implements com. |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| public Matcher | |
| public List | |
| public Matcher | |
| public Object | getSource()
Implements com. |
| classMatcher | back to summary |
|---|---|
| private final Matcher<? super Class<?>> classMatcher | |
| interceptors | back to summary |
|---|---|
| private final ImmutableList<MethodInterceptor> interceptors | |
| methodMatcher | back to summary |
|---|---|
| private final Matcher<? super Method> methodMatcher | |
| source | back to summary |
|---|---|
| private final Object source | |
| InterceptorBinding | back to summary |
|---|---|
| pack-priv InterceptorBinding(Object source, Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor[] interceptors) | |
| acceptVisitor | back to summary |
|---|---|
| public <T> T acceptVisitor(ElementVisitor<T> visitor) Implements com. Doc from com. Accepts an element visitor. Invokes the visitor method specific to this element's type.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation). | |
| getClassMatcher | back to summary |
|---|---|
| public Matcher | |
| getInterceptors | back to summary |
|---|---|
| public List | |
| getMethodMatcher | back to summary |
|---|---|
| public Matcher | |
| getSource | back to summary |
|---|---|
| public Object getSource() Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this element was configured. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about;
| |