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.
<T> T
copy()
          Return a copy of the class.
 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 preventModification()
          Modification is not controlled at this level.
 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
 Copyable unwrap()
          Get the innermost copyable instance, if wrapped by a proxy.
 
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()

copy

public final <T> T copy()
Description copied from interface: Copyable
Return a copy of the class.

Specified by:
copy in interface Copyable
Type Parameters:
T - copyable type
Returns:
the copy
See Also:
Copyable.copy(), CopyUtils.copy(Copyable)

unwrap

public Copyable unwrap()
Get the innermost copyable instance, if wrapped by a proxy. When not wrapped, return this.

Specified by:
unwrap in interface Copyable
Returns:
wrapped instance

preventModification

public void preventModification()
Modification is not controlled at this level. Indicated that a given instance may not be modified until copied, if supported.

Specified by:
preventModification in interface Copyable


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