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:
  • Constructor Details

    • MethodInvokerConfig

      public MethodInvokerConfig()
  • Method Details

    • 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 -
    • getTargetClass

      public Class getTargetClass()
      Overrides:
      getTargetClass in class org.springframework.util.MethodInvoker
    • getTargetObject

      public Object getTargetObject()
      Overrides:
      getTargetObject in class org.springframework.util.MethodInvoker
    • getTargetMethod

      public String getTargetMethod()
      Overrides:
      getTargetMethod in class org.springframework.util.MethodInvoker
    • getArguments

      public Object[] getArguments()
      Overrides:
      getArguments in class org.springframework.util.MethodInvoker
    • 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

      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: