Class MethodInvocationUtils
- java.lang.Object
- 
- org.springframework.security.util.MethodInvocationUtils
 
- 
 public final class MethodInvocationUtils extends java.lang.ObjectStatic utility methods for creatingMethodInvocations usable within Spring Security.All methods of this class return a SimpleMethodInvocation.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static org.aopalliance.intercept.MethodInvocationcreate(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)Generates aMethodInvocationfor specifiedmethodNameon the passed object, using theargsto locate the method.static org.aopalliance.intercept.MethodInvocationcreateFromClass(java.lang.Class<?> clazz, java.lang.String methodName)Generates aMethodInvocationfor the specifiedmethodNameon the passed class.static org.aopalliance.intercept.MethodInvocationcreateFromClass(java.lang.Object targetObject, java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>[] classArgs, java.lang.Object[] args)Generates aMethodInvocationfor specifiedmethodNameon the passed class, using theargsto locate the method.
 
- 
- 
- 
Method Detail- 
createpublic static org.aopalliance.intercept.MethodInvocation create(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)Generates aMethodInvocationfor specifiedmethodNameon the passed object, using theargsto locate the method.- Parameters:
- object- the object that will be used to find the relevant- Method
- methodName- the name of the method to find
- args- arguments that are required as part of the method signature (can be empty)
- Returns:
- a MethodInvocation, ornullif there was a problem
 
 - 
createFromClasspublic static org.aopalliance.intercept.MethodInvocation createFromClass(java.lang.Class<?> clazz, java.lang.String methodName)Generates aMethodInvocationfor the specifiedmethodNameon the passed class. If a method with this name, taking no arguments does not exist, it will check through the declared methods on the class, until one is found matching the supplied name. If more than one method name matches, an IllegalArgumentException will be raised.- Parameters:
- clazz- the class of object that will be used to find the relevant- Method
- methodName- the name of the method to find
- Returns:
- a MethodInvocation, ornullif there was a problem
 
 - 
createFromClasspublic 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 aMethodInvocationfor specifiedmethodNameon the passed class, using theargsto locate the method.- Parameters:
- targetObject- the object being invoked
- clazz- the class of object that will be used to find the relevant- Method
- methodName- the name of the method to find
- classArgs- arguments that are required to locate the relevant method signature
- args- the actual arguments that should be passed to SimpleMethodInvocation
- Returns:
- a MethodInvocation, ornullif there was a problem
 
 
- 
 
-