org.apache.shiro.aop
Class MethodInterceptorSupport

java.lang.Object
  extended by 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

Constructor Summary
MethodInterceptorSupport()
          Default no-argument constructor for subclasses.
 
Method Summary
protected  Subject getSubject()
          Returns the Subject associated with the currently-executing code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.shiro.aop.MethodInterceptor
invoke
 

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.


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.