| com.rift.coad.daemon.jython.JythonDaemon
All known Subclasses: com.rift.coad.daemon.jython.JythonDaemonImpl,
JythonDaemon | public interface JythonDaemon extends Remote(Code) | | The Jython Daemon integrates Jython into Coadunation which give a user the
ability to run Python scripts within Coadunation.
author: Glynn Chaldecott |
Method Summary | |
public void | registerScript(byte[] file, String name) 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. | public Object | runScript(String name, String returnValue, Class javaclass) This method is called when a user wants to run a stored script. | public Object | runScript(String name, String returnValue, Class javaclass, Map arguments) This method is called when a user wants to run a stored script. |
registerScript | public void registerScript(byte[] file, String name) throws RemoteException, JythonDaemonException(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. Please note that on a windows installation this will need to include the file extension ".py". |
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. Please note that on a windows installation this will need to include the file extension ".py". 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. Please note that on a windows installation this will need to include the file extension ".py". 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. |
|
|