Class AnnotationsAuthorizingMethodInterceptor

  • All Implemented Interfaces:
    MethodInterceptor

    public abstract class AnnotationsAuthorizingMethodInterceptor
    extends AuthorizingMethodInterceptor
    An AnnotationsAuthorizingMethodInterceptor is a MethodInterceptor that asserts a given method is authorized to execute based on one or more configured AuthorizingAnnotationMethodInterceptors.

    This allows multiple annotations on a method to be processed before the method executes, and if any of the AuthorizingAnnotationMethodInterceptors indicate that the method should not be executed, an AuthorizationException will be thrown, otherwise the method will be invoked as expected.

    It is essentially a convenience mechanism to allow multiple annotations to be processed in a single method interceptor.

    Since:
    0.2