public class AopAllianceAnnotationsAuthorizingMethodInterceptor extends AnnotationsAuthorizingMethodInterceptor implements org.aopalliance.intercept.MethodInterceptor
methodInterceptors
Constructor and Description |
---|
AopAllianceAnnotationsAuthorizingMethodInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
continueInvocation(Object aopAllianceMethodInvocation)
Simply casts the method argument to an
org.aopalliance.intercept.MethodInvocation and then
calls methodInvocation. |
protected MethodInvocation |
createMethodInvocation(Object implSpecificMethodInvocation)
Creates a
MethodInvocation that wraps an
org.aopalliance.intercept.MethodInvocation instance,
enabling Shiro Annotations in AOP Alliance environments
(Spring, etc). |
Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
Creates a Shiro
MethodInvocation instance and then immediately calls
super.invoke . |
assertAuthorized, getMethodInterceptors, setMethodInterceptors
invoke
getSubject
public AopAllianceAnnotationsAuthorizingMethodInterceptor()
protected MethodInvocation createMethodInvocation(Object implSpecificMethodInvocation)
MethodInvocation
that wraps an
org.aopalliance.intercept.MethodInvocation
instance,
enabling Shiro Annotations in AOP Alliance environments
(Spring, etc).implSpecificMethodInvocation
- AOP Alliance MethodInvocation
MethodInvocation
instance that wraps the AOP Alliance instance.protected Object continueInvocation(Object aopAllianceMethodInvocation) throws Throwable
org.aopalliance.intercept.MethodInvocation
and then
calls methodInvocation.proceed
()
aopAllianceMethodInvocation
- the org.aopalliance.intercept.MethodInvocation
org.aopalliance.intercept.MethodInvocation.proceed()
method call result.Throwable
- if the underlying AOP Alliance proceed()
call throws a Throwable
.public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
MethodInvocation
instance and then immediately calls
super.invoke
.methodInvocation
- the AOP Alliance-specific methodInvocation
instance.Throwable
- if the underlying AOP Alliance method invocation throws a Throwable
.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.