Package org.apache.shiro.aspectj
Class BeforeAdviceMethodInvocationAdapter
- java.lang.Object
-
- org.apache.shiro.aspectj.BeforeAdviceMethodInvocationAdapter
-
- All Implemented Interfaces:
org.apache.shiro.aop.MethodInvocation
public class BeforeAdviceMethodInvocationAdapter extends Object implements org.apache.shiro.aop.MethodInvocation
Helper class that adapts an AspectJJoinPoint.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BeforeAdviceMethodInvocationAdapter(Object anObject, Method aMethod, Object[] someArguments)Creates a newBeforeAdviceMethodInvocationAdapterinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BeforeAdviceMethodInvocationAdaptercreateFrom(org.aspectj.lang.JoinPoint aJoinPoint)Factory method that creates a newBeforeAdviceMethodInvocationAdapterinstance using the AspectJJoinPointprovided.Object[]getArguments()MethodgetMethod()ObjectgetThis()Objectproceed()
-
-
-
Constructor Detail
-
BeforeAdviceMethodInvocationAdapter
public BeforeAdviceMethodInvocationAdapter(Object anObject, Method aMethod, Object[] someArguments)
Creates a newBeforeAdviceMethodInvocationAdapterinstance.- Parameters:
aMethod- The method to invoke.someArguments- The arguments of the method invocation.
-
-
Method Detail
-
createFrom
public static BeforeAdviceMethodInvocationAdapter createFrom(org.aspectj.lang.JoinPoint aJoinPoint)
Factory method that creates a newBeforeAdviceMethodInvocationAdapterinstance using the AspectJJoinPointprovided. If the joint point passed in is not a method joint point, this method throws anIllegalArgumentException.- Parameters:
aJoinPoint- The AspectJJoinPointto use to adapt the advice.- Returns:
- The created instance.
- Throws:
IllegalArgumentException- If the join point passed in does not involve a method call.
-
getArguments
public Object[] getArguments()
- Specified by:
getArgumentsin interfaceorg.apache.shiro.aop.MethodInvocation
-
getMethod
public Method getMethod()
- Specified by:
getMethodin interfaceorg.apache.shiro.aop.MethodInvocation
-
proceed
public Object proceed() throws Throwable
- Specified by:
proceedin interfaceorg.apache.shiro.aop.MethodInvocation- Throws:
Throwable
-
getThis
public Object getThis()
- Specified by:
getThisin interfaceorg.apache.shiro.aop.MethodInvocation- Since:
- 1.0
-
-