Class 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:
    prepare(), invoke()