org.apache.shiro.aop
Class MethodInterceptorSupport
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
- All Implemented Interfaces:
- MethodInterceptor
- Direct Known Subclasses:
- AnnotationMethodInterceptor, AuthorizingMethodInterceptor
public abstract class MethodInterceptorSupport
- extends Object
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInterceptorSupport
public MethodInterceptorSupport()
- Default no-argument constructor for subclasses.
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.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.