Class AopAllianceAnnotationsAuthorizingMethodInterceptor
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
org.apache.shiro.authz.aop.AuthorizingMethodInterceptor
org.apache.shiro.authz.aop.AnnotationsAuthorizingMethodInterceptor
org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor,org.apache.shiro.aop.MethodInterceptor
public class AopAllianceAnnotationsAuthorizingMethodInterceptor
extends org.apache.shiro.authz.aop.AnnotationsAuthorizingMethodInterceptor
implements MethodInterceptor
Allows Shiro Annotations to work in any AOP Alliance
specific implementation environment (for example, Spring).
- Since:
- 0.2
-
Field Summary
Fields inherited from class org.apache.shiro.authz.aop.AnnotationsAuthorizingMethodInterceptor
methodInterceptors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcontinueInvocation(Object aopAllianceMethodInvocation) Simply casts the method argument to anorg.aopalliance.intercept.MethodInvocationand then callsmethodInvocation.proceed()protected org.apache.shiro.aop.MethodInvocationcreateMethodInvocation(Object implSpecificMethodInvocation) Creates aMethodInvocationthat wraps anorg.aopalliance.intercept.MethodInvocationinstance, enabling Shiro Annotations in AOP Alliance environments (Spring, etc.).invoke(MethodInvocation methodInvocation) Creates a ShiroMethodInvocationinstance and then immediately callssuper.invoke.Methods inherited from class org.apache.shiro.authz.aop.AnnotationsAuthorizingMethodInterceptor
assertAuthorized, getMethodInterceptors, setMethodInterceptorsMethods inherited from class org.apache.shiro.authz.aop.AuthorizingMethodInterceptor
invokeMethods inherited from class org.apache.shiro.aop.MethodInterceptorSupport
getSubject
-
Constructor Details
-
AopAllianceAnnotationsAuthorizingMethodInterceptor
-
-
Method Details
-
createMethodInvocation
protected org.apache.shiro.aop.MethodInvocation createMethodInvocation(Object implSpecificMethodInvocation) Creates aMethodInvocationthat wraps anorg.aopalliance.intercept.MethodInvocationinstance, enabling Shiro Annotations in AOP Alliance environments (Spring, etc.).- Parameters:
implSpecificMethodInvocation- AOP AllianceMethodInvocation- Returns:
- a Shiro
MethodInvocationinstance that wraps the AOP Alliance instance.
-
continueInvocation
Simply casts the method argument to anorg.aopalliance.intercept.MethodInvocationand then callsmethodInvocation.proceed()- Parameters:
aopAllianceMethodInvocation- theorg.aopalliance.intercept.MethodInvocation- Returns:
- the
org.aopalliance.intercept.MethodInvocation.proceed()method call result. - Throws:
Throwable- if the underlying AOP Allianceproceed()call throws aThrowable.
-
invoke
Creates a ShiroMethodInvocationinstance and then immediately callssuper.invoke.- Specified by:
invokein interfaceMethodInterceptor- Parameters:
methodInvocation- the AOP Alliance-specificmethodInvocationinstance.- Returns:
- the return value from invoking the method invocation.
- Throws:
Throwable- if the underlying AOP Alliance method invocation throws aThrowable.
-