public final class MethodInvocationUtils
extends java.lang.Object
MethodInvocation
s usable within Spring Security.
All methods of this class return a SimpleMethodInvocation
.
Modifier and Type | Method and Description |
---|---|
static org.aopalliance.intercept.MethodInvocation |
create(java.lang.Object object,
java.lang.String methodName)
Generates a
MethodInvocation for specified methodName on the passed object. |
static org.aopalliance.intercept.MethodInvocation |
create(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] args)
Generates a
MethodInvocation for specified methodName on the passed object,
using the args to locate the method. |
static org.aopalliance.intercept.MethodInvocation |
createFromClass(java.lang.Class clazz,
java.lang.String methodName)
Generates a
MethodInvocation for specified methodName on the passed class. |
static org.aopalliance.intercept.MethodInvocation |
createFromClass(java.lang.Object targetObject,
java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class[] classArgs,
java.lang.Object[] args)
Generates a
MethodInvocation for specified methodName on the passed class,
using the args to locate the method. |
public static org.aopalliance.intercept.MethodInvocation create(java.lang.Object object, java.lang.String methodName)
MethodInvocation
for specified methodName
on the passed object.object
- the object that will be used to find the relevant Method
methodName
- the name of the method to findMethodInvocation
, or null
if there was a problempublic static org.aopalliance.intercept.MethodInvocation create(java.lang.Object object, java.lang.String methodName, java.lang.Object[] args)
MethodInvocation
for specified methodName
on the passed object,
using the args
to locate the method.object
- the object that will be used to find the relevant Method
methodName
- the name of the method to findargs
- arguments that are required as part of the method signatureMethodInvocation
, or null
if there was a problempublic static org.aopalliance.intercept.MethodInvocation createFromClass(java.lang.Class clazz, java.lang.String methodName)
MethodInvocation
for specified methodName
on the passed class.clazz
- the class of object that will be used to find the relevant Method
methodName
- the name of the method to findMethodInvocation
, or null
if there was a problempublic static org.aopalliance.intercept.MethodInvocation createFromClass(java.lang.Object targetObject, java.lang.Class clazz, java.lang.String methodName, java.lang.Class[] classArgs, java.lang.Object[] args)
MethodInvocation
for specified methodName
on the passed class,
using the args
to locate the method.targetObject
- the object being invokedclazz
- the class of object that will be used to find the relevant Method
methodName
- the name of the method to findclassArgs
- arguments that are required to locate the relevant method signatureargs
- the actual arguments that should be passed to SimpleMethodInvocationMethodInvocation
, or null
if there was a problem