public class BeforeAdviceMethodInvocationAdapter extends Object implements MethodInvocation
JoinPoint
.Constructor and Description |
---|
BeforeAdviceMethodInvocationAdapter(Object anObject,
Method aMethod,
Object[] someArguments)
Creates a new
BeforeAdviceMethodInvocationAdapter instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
public BeforeAdviceMethodInvocationAdapter(Object anObject, Method aMethod, Object[] someArguments)
BeforeAdviceMethodInvocationAdapter
instance.aMethod
- The method to invoke.someArguments
- The arguments of the method invocation.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 MethodInvocation
public Method getMethod()
MethodInvocation
Method
to be invoked.getMethod
in interface MethodInvocation
Method
to be invoked.public Object proceed() throws Throwable
MethodInvocation
proceed
in interface MethodInvocation
Throwable
- if the method or chain throws a Throwablepublic Object getThis()
MethodInvocation
getThis
in interface MethodInvocation
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.