org.apache.shiro.aspectj
Class BeforeAdviceMethodInvocationAdapter
java.lang.Object
org.apache.shiro.aspectj.BeforeAdviceMethodInvocationAdapter
- All Implemented Interfaces:
- MethodInvocation
public class BeforeAdviceMethodInvocationAdapter
- extends Object
- implements MethodInvocation
Helper class that adapts an AspectJ JoinPoint.
- Since:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeforeAdviceMethodInvocationAdapter
public BeforeAdviceMethodInvocationAdapter(Object anObject,
Method aMethod,
Object[] someArguments)
- Creates a new
BeforeAdviceMethodInvocationAdapter instance.
- Parameters:
aMethod - The method to invoke.someArguments - The arguments of the method invocation.
createFrom
public static BeforeAdviceMethodInvocationAdapter createFrom(org.aspectj.lang.JoinPoint aJoinPoint)
- Factory method that creates a new
BeforeAdviceMethodInvocationAdapter instance
using the AspectJ JoinPoint provided. If the joint point passed in is not
a method joint point, this method throws an IllegalArgumentException.
- Parameters:
aJoinPoint - The AspectJ JoinPoint to 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:
getArguments in interface MethodInvocation
getMethod
public Method getMethod()
- Specified by:
getMethod in interface MethodInvocation
proceed
public Object proceed()
throws Throwable
- Specified by:
proceed in interface MethodInvocation
- Throws:
Throwable
getThis
public Object getThis()
- Specified by:
getThis in interface MethodInvocation
- Since:
- 1.0
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.