Class AccessCheckingInterceptor

  • All Implemented Interfaces:
    Interceptor

    public final class AccessCheckingInterceptor
    extends Object
    implements Interceptor
    An interceptor which enables access checking for the duration of the invocation.
    Author:
    David M. Lloyd
    • Method Detail

      • getInstance

        public static AccessCheckingInterceptor getInstance()
        Get the singleton instance.
        Returns:
        the singleton instance
      • getFactory

        public static InterceptorFactory getFactory()
        Get the singleton factory instance.
        Returns:
        the singleton factory instance
      • processInvocation

        public Object processInvocation​(InterceptorContext context)
                                 throws Exception
        Description copied from interface: Interceptor
        Process an invocation. The invocation can be handled directly, or passed on to the next processor in the chain.
        Specified by:
        processInvocation in interface Interceptor
        Parameters:
        context - the interceptor context
        Returns:
        the result of the invocation
        Throws:
        Exception - If the underlying invocation resulted in some exception