Package org.proxy4j.core.build
Interface InterceptorBindingBuilder<T>
-
- All Superinterfaces:
MethodBinder<T>
public interface InterceptorBindingBuilder<T> extends MethodBinder<T>
An intermediate builder used by
InterceptorBuilderto bind a set of methods on the target type to the given interceptors. Clients should not refer to this class directly but instead use the fluent API documentedhere.- Since:
- 1.0
- Author:
- Brennan Spies
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InterceptorCreator<T>using(Class<? extends Annotation> methodMarker, org.aopalliance.intercept.MethodInterceptor... interceptors)Uses the annotation to selectively bind methods on the class of typeTto the given chain of interceptors.InterceptorCreator<T>using(MethodFilter filter, org.aopalliance.intercept.MethodInterceptor... interceptors)Uses the given method filter to selectively bind methods on the class of typeTto the given chain of interceptors.InterceptorCreator<T>using(MethodFilter filter, InterceptorFactory factory)Uses the given method filter to selectively bind methods on the class of typeTto a chain of interceptors produced by the given factory.-
Methods inherited from interface org.proxy4j.core.build.MethodBinder
using
-
-
-
-
Method Detail
-
using
InterceptorCreator<T> using(MethodFilter filter, org.aopalliance.intercept.MethodInterceptor... interceptors)
Uses the given method filter to selectively bind methods on the class of typeTto the given chain of interceptors. The interceptors are shared between all proxied methods.- Parameters:
filter- The method filterinterceptors- The interceptor chain- Returns:
- The final builder, used to create proxy
-
using
InterceptorCreator<T> using(MethodFilter filter, InterceptorFactory factory)
Uses the given method filter to selectively bind methods on the class of typeTto a chain of interceptors produced by the given factory. Hence the interceptors are not (necessarily) shared between all proxied methods.- Parameters:
filter- The method filterfactory- The interceptor factory- Returns:
- The final builder, used to create the proxy
-
using
InterceptorCreator<T> using(Class<? extends Annotation> methodMarker, org.aopalliance.intercept.MethodInterceptor... interceptors)
Uses the annotation to selectively bind methods on the class of typeTto the given chain of interceptors. The interceptors are shared between all proxied methods.- Parameters:
methodMarker- The annotationinterceptors- The interceptor chain- Returns:
- The final builder, used to create the proxy
-
-