Class MethodInterceptorSupport

  • All Implemented Interfaces:
    MethodInterceptor
    Direct Known Subclasses:
    AnnotationMethodInterceptor, AuthorizingMethodInterceptor

    public abstract class MethodInterceptorSupport
    extends 
    implements MethodInterceptor
    This class is an abstraction of AOP method interceptor behavior specific to Shiro that leaves AOP implementation specifics to be handled by subclass implementations. This implementation primarily enables a Log and makes available the currently executing Subject.
    Since:
    0.2
    • Constructor Detail

      • MethodInterceptorSupport

        public MethodInterceptorSupport()
        Default no-argument constructor for subclasses.
    • Method Detail

      • getSubject

        protected Subject getSubject()
        Returns the Subject associated with the currently-executing code.

        This default implementation merely calls SecurityUtils.getSubject().

        Returns:
        the Subject associated with the currently-executing code.