| java.lang.Object com.rift.coad.daemon.jython.JythonDaemonImpl
JythonDaemonImpl | public class JythonDaemonImpl implements JythonDaemon(Code) | | This Daemon integrates Jython into coadunation.
author: Glynn Chaldecott |
Constructor Summary | |
public | JythonDaemonImpl() Creates a new instance of JythonEmbedImpl and configures Jython for use. |
JythonDaemonImpl | public JythonDaemonImpl() throws Exception(Code) | | Creates a new instance of JythonEmbedImpl and configures Jython for use.
|
registerScript | public void registerScript(byte[] file, String name) throws RemoteException(Code) | | This script is called in order to register a new script within
Coadunation.
Parameters: script - This is a string containing the script that will be inserted in a python file. Parameters: name - This is what the script will be called as well as what the python file will be named. |
runScript | public Object runScript(String name, String returnValue, Class javaclass) throws RemoteException(Code) | | This method is called when a user wants to run a stored script. It will
then return the requested value.
Parameters: name - This is the name of the script that a user wishes to run. Parameters: returnValue - This is the name of the value a user wishes to have returned. Parameters: javaclass - This is the type of object a user wants the returned value to returned as. Returns a value from the script. |
runScript | public Object runScript(String name, String returnValue, Class javaclass, Map arguments) throws RemoteException(Code) | | This method is called when a user wants to run a stored script. It will
then return the requested value. A user can also specify value for
variables within the script.
Parameters: name - This is the name of the script that a user wishes to run. Parameters: returnValue - This is the name of the value a user wishes to have returned. Parameters: javaclass - This is the type of object a user wants the returned value to returned as. Parameters: arguments - This is a Map object containing as the key the name of the variable and the value for that variable. Returns a value from the script. |
|
|