Class MethodInvokerConfig
java.lang.Object
org.springframework.util.MethodInvoker
org.kuali.rice.krad.uif.component.MethodInvokerConfig
- All Implemented Interfaces:
Serializable,Cloneable,Copyable
public class MethodInvokerConfig
extends org.springframework.util.MethodInvoker
implements Serializable, Copyable
Extends
MethodInvoker to add properties for specifying
a method for invocation within the UIF- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.springframework.util.MethodInvoker
targetClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()OverrideObject.clone()to assign the public modifier.Object[]Class[]Declared argument types for the method to be invoked, if not set the types will be retrieved based on the target class and target nameprotected Class[]Finds the method on the target class that matches the target name and returns the declared parameter typesSet a fully qualified static method name to invoke, e.g.voidprepare()voidsetArgumentTypes(Class[] argumentTypes) Setter for the method argument types that should be invokedvoidsetStaticMethod(String staticMethod) Override to catch a set staticMethod since super does not contain a getterMethods inherited from class org.springframework.util.MethodInvoker
findMatchingMethod, getPreparedMethod, getTypeDifferenceWeight, invoke, isPrepared, resolveClassName, setArguments, setTargetClass, setTargetMethod, setTargetObject
-
Constructor Details
-
MethodInvokerConfig
public MethodInvokerConfig()
-
-
Method Details
-
prepare
- Overrides:
preparein classorg.springframework.util.MethodInvoker- Throws:
ClassNotFoundExceptionNoSuchMethodException
-
getStaticMethod
Set a fully qualified static method name to invoke, e.g. "example.MyExampleClass.myExampleMethod". Convenient alternative to specifying targetClass and targetMethod.- Returns:
- static method to invoke
-
setStaticMethod
Override to catch a set staticMethod since super does not contain a getter- Overrides:
setStaticMethodin classorg.springframework.util.MethodInvoker- Parameters:
staticMethod- static method to invoke
-
getArgumentTypes
Declared argument types for the method to be invoked, if not set the types will be retrieved based on the target class and target name- Returns:
- method argument types
-
setArgumentTypes
Setter for the method argument types that should be invoked- Parameters:
argumentTypes-
-
getTargetClass
- Overrides:
getTargetClassin classorg.springframework.util.MethodInvoker
-
getTargetObject
- Overrides:
getTargetObjectin classorg.springframework.util.MethodInvoker
-
getTargetMethod
- Overrides:
getTargetMethodin classorg.springframework.util.MethodInvoker
-
getArguments
- Overrides:
getArgumentsin classorg.springframework.util.MethodInvoker
-
getMethodArgumentTypes
Finds the method on the target class that matches the target name and returns the declared parameter types- Returns:
- method parameter types
-
clone
Description copied from interface:CopyableOverrideObject.clone()to assign the public modifier.- Specified by:
clonein interfaceCopyable- Overrides:
clonein classObject- Returns:
Object.clone()- Throws:
CloneNotSupportedException- IfCloneableis not implemented. This should not be possible when using this interface.- See Also:
-