net.sf.xbus.technical.java
Class JavaCaller

java.lang.Object
  extended by net.sf.xbus.technical.java.JavaCaller
All Implemented Interfaces:
Callable

public class JavaCaller
extends java.lang.Object
implements Callable

Used by JavaSender.execute(String, Object) together with the TimedCallable to be able to stop the execution of the program after a timeout.


Constructor Summary
JavaCaller(XBUSSystem destination, java.lang.String function, java.lang.Object callData, boolean isText)
          Stores the given data.
 
Method Summary
 java.lang.Object call()
          Calling the Java method.
 void stop()
          Stopping the execution of the program by doing nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaCaller

public JavaCaller(XBUSSystem destination,
                  java.lang.String function,
                  java.lang.Object callData,
                  boolean isText)
Stores the given data.

Parameters:
destination - name of the interface definition
function - used to determine the method
callData - data to be send
isText - indicates whether the method accepts a String (true) or an Object (false)
Method Detail

call

public java.lang.Object call()
                      throws XException
Calling the Java method. The name of the class and the name of the method are read out of the configuration.

Specified by:
call in interface Callable
Returns:
the response of the called method
Throws:
XException

stop

public void stop()
Stopping the execution of the program by doing nothing.

Specified by:
stop in interface Callable