Package org.apache.shiro.aop
Class MethodInterceptorSupport
-
- org.apache.shiro.aop.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 executingSubject
.- Since:
- 0.2
-
-
Constructor Summary
Constructors Constructor Description MethodInterceptorSupport()
Default no-argument constructor for subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Subject
getSubject()
Returns theSubject
associated with the currently-executing code.-
Methods inherited from interface org.apache.shiro.aop.MethodInterceptor
invoke
-
-
-
-
Method Detail
-
getSubject
protected Subject getSubject()
Returns theSubject
associated with the currently-executing code. This default implementation merely calls
.SecurityUtils.getSubject()
- Returns:
- the
Subject
associated with the currently-executing code.
-
-