de.lessvoid.xml.tools
Class MethodInvoker

java.lang.Object
  extended by de.lessvoid.xml.tools.MethodInvoker

public class MethodInvoker
extends Object

A object and a method for the object.

Author:
void

Constructor Summary
MethodInvoker()
          create null MethodInvoker.
MethodInvoker(String methodParam, Object... targetParam)
          Create new MethodInvoker.
 
Method Summary
 Object invoke(Object... invokeParametersParam)
          invoke method with optional parameters.
 void setFirst(Object object)
          Set first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvoker

public MethodInvoker()
create null MethodInvoker.


MethodInvoker

public MethodInvoker(String methodParam,
                     Object... targetParam)
Create new MethodInvoker.

Parameters:
methodParam - method
targetParam - target
Method Detail

setFirst

public void setFirst(Object object)
Set first.

Parameters:
object - object

invoke

public Object invoke(Object... invokeParametersParam)
invoke method with optional parameters.

Parameters:
invokeParametersParam - parameter array for call
Returns:
result of call


Copyright © 2012. All Rights Reserved.