Interface InterceptorBindingBuilder<T>

  • All Superinterfaces:
    MethodBinder<T>

    public interface InterceptorBindingBuilder<T>
    extends MethodBinder<T>

    An intermediate builder used by InterceptorBuilder to 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 documented here.

    Since:
    1.0
    Author:
    Brennan Spies
    • 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 type T to the given chain of interceptors. The interceptors are shared between all proxied methods.
        Parameters:
        filter - The method filter
        interceptors - 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 type T to a chain of interceptors produced by the given factory. Hence the interceptors are not (necessarily) shared between all proxied methods.
        Parameters:
        filter - The method filter
        factory - 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 type T to the given chain of interceptors. The interceptors are shared between all proxied methods.
        Parameters:
        methodMarker - The annotation
        interceptors - The interceptor chain
        Returns:
        The final builder, used to create the proxy