org.kuali.rice.krad.uif.component
Class MethodInvokerConfig

java.lang.Object
  extended by org.springframework.util.MethodInvoker
      extended by 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:
Serialized Form

Constructor Summary
MethodInvokerConfig()
           
 
Method Summary
 MethodInvokerConfig clone()
          Override Object.clone() to assign the public modifier.
 Class[] 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
protected  Class[] getMethodArgumentTypes()
          Finds the method on the target class that matches the target name and returns the declared parameter types
 String getStaticMethod()
          Set a fully qualified static method name to invoke, e.g.
 void prepare()
          
 void setArgumentTypes(Class[] argumentTypes)
          Setter for the method argument types that should be invoked
 void setStaticMethod(String staticMethod)
          Override to catch a set staticMethod since super does not contain a getter
 
Methods inherited from class org.springframework.util.MethodInvoker
findMatchingMethod, getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, getTypeDifferenceWeight, invoke, isPrepared, resolveClassName, setArguments, setTargetClass, setTargetMethod, setTargetObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokerConfig

public MethodInvokerConfig()
Method Detail

prepare

public void prepare()
             throws ClassNotFoundException,
                    NoSuchMethodException

Overrides:
prepare in class org.springframework.util.MethodInvoker
Throws:
ClassNotFoundException
NoSuchMethodException

getStaticMethod

public String 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

public void setStaticMethod(String staticMethod)
Override to catch a set staticMethod since super does not contain a getter

Overrides:
setStaticMethod in class org.springframework.util.MethodInvoker
Parameters:
staticMethod - static method to invoke

getArgumentTypes

public Class[] 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

public void setArgumentTypes(Class[] argumentTypes)
Setter for the method argument types that should be invoked

Parameters:
argumentTypes -

getMethodArgumentTypes

protected Class[] getMethodArgumentTypes()
Finds the method on the target class that matches the target name and returns the declared parameter types

Returns:
method parameter types

clone

public MethodInvokerConfig clone()
                          throws CloneNotSupportedException
Description copied from interface: Copyable
Override Object.clone() to assign the public modifier.

Specified by:
clone in interface Copyable
Overrides:
clone in class Object
Returns:
Object.clone()
Throws:
CloneNotSupportedException - If Cloneable is not implemented. This should not be possible when using this interface.
See Also:
Copyable.clone()


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.