Class MethodInterceptorSupport
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
- All Implemented Interfaces:
MethodInterceptor
- Direct Known Subclasses:
AnnotationMethodInterceptor,AuthorizingMethodInterceptor
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 Details
-
MethodInterceptorSupport
public MethodInterceptorSupport()Default no-argument constructor for subclasses.
-
-
Method Details
-
getSubject
Returns theSubjectassociated with the currently-executing code. This default implementation merely calls.SecurityUtils.getSubject()- Returns:
- the
Subjectassociated with the currently-executing code.
-