de.lessvoid.nifty
Class NiftyMethodInvoker

java.lang.Object
  extended by de.lessvoid.nifty.NiftyMethodInvoker
All Implemented Interfaces:
NiftyDelayedMethodInvoke

public class NiftyMethodInvoker
extends Object
implements NiftyDelayedMethodInvoke

A object and a method for the object.

Author:
void

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

Constructor Detail

NiftyMethodInvoker

public NiftyMethodInvoker(Nifty nifty)
create null MethodInvoker.


NiftyMethodInvoker

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

Parameters:
methodParam - method
targetParam - target
Method Detail

invoke

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

Parameters:
invokeParametersParam - parameter array for call
Returns:
true, method has been scheduled and false, method couldn't be called

performInvoke

public void performInvoke(Object... invokeParametersParam)
Specified by:
performInvoke in interface NiftyDelayedMethodInvoke


Copyright © 2011. All Rights Reserved.