Class MethodInvoker

java.lang.Object
org.springframework.util.MethodInvoker
Direct Known Subclasses:
ArgumentConvertingMethodInvoker

public class MethodInvoker extends Object
Helper class that allows for specifying a method to invoke in a declarative fashion, be it static or non-static.

Usage: Specify "targetClass"/"targetMethod" or "targetObject"/"targetMethod", optionally specify arguments, prepare the invoker. Afterwards, you may invoke the method any number of times, obtaining the invocation result.

Since:
19.02.2004
Author:
Colin Sampaleanu, Juergen Hoeller
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable Class<?>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @Nullable