|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shiro.aspectj.BeforeAdviceMethodInvocationAdapter
public class BeforeAdviceMethodInvocationAdapter
Helper class that adapts an AspectJ JoinPoint.
| Constructor Summary | |
|---|---|
BeforeAdviceMethodInvocationAdapter(Object anObject,
Method aMethod,
Object[] someArguments)
Creates a new BeforeAdviceMethodInvocationAdapter instance. |
|
| Method Summary | |
|---|---|
static BeforeAdviceMethodInvocationAdapter |
createFrom(org.aspectj.lang.JoinPoint aJoinPoint)
Factory method that creates a new BeforeAdviceMethodInvocationAdapter instance
using the AspectJ JoinPoint provided. |
Object[] |
getArguments()
Returns the (possibly null) arguments to be supplied to the method invocation. |
Method |
getMethod()
Returns the actual Method to be invoked. |
Object |
getThis()
Returns the object that holds the current joinpoint's static part. |
Object |
proceed()
Continues the method invocation chain, or if the last in the chain, the method itself. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeforeAdviceMethodInvocationAdapter(Object anObject,
Method aMethod,
Object[] someArguments)
BeforeAdviceMethodInvocationAdapter instance.
aMethod - The method to invoke.someArguments - The arguments of the method invocation.| Method Detail |
|---|
public static BeforeAdviceMethodInvocationAdapter createFrom(org.aspectj.lang.JoinPoint aJoinPoint)
BeforeAdviceMethodInvocationAdapter instance
using the AspectJ JoinPoint provided. If the joint point passed in is not
a method joint point, this method throws an IllegalArgumentException.
aJoinPoint - The AspectJ JoinPoint to use to adapt the advice.
IllegalArgumentException - If the join point passed in does not involve a method call.public Object[] getArguments()
MethodInvocation
getArguments in interface MethodInvocationpublic Method getMethod()
MethodInvocationMethod to be invoked.
getMethod in interface MethodInvocationMethod to be invoked.
public Object proceed()
throws Throwable
MethodInvocation
proceed in interface MethodInvocationThrowable - if the method or chain throws a Throwablepublic Object getThis()
MethodInvocation
getThis in interface MethodInvocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||