|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.scripting.ScriptLauncher org.figure8.join.services.scripting.ruby.RubyScriptLauncher
public class RubyScriptLauncher
Field Summary | |
---|---|
static java.lang.String |
LIBRARY_PATH_PARAM
Name of configurable parameter denoting the path to Ruby libraries |
protected static java.util.List |
parameters
List of ParameterDefinition s supported by this launcher |
protected static ParameterDefinition |
targetParam
ParameterDefinition representation of parameter denoting the target to execute. |
Fields inherited from class org.figure8.join.services.scripting.ScriptLauncher |
---|
SCRIPT_PARAM, scriptParam |
Constructor Summary | |
---|---|
RubyScriptLauncher()
Creates a new instance of RubyScriptLauncher |
|
RubyScriptLauncher(java.lang.String scriptPath)
Creates a new instance of RubyScriptLauncher with script path |
Method Summary | |
---|---|
java.lang.String |
getLibraryPath()
|
java.util.List |
getParameterDefinitionsAsList()
Get this object parameters definitions as a list |
void |
runScript(java.util.Properties properties)
Run the Ruby script file identified by scriptPath inner
field. |
void |
setLibraryPath(java.lang.String libraryPath)
|
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Set the value of a parameter using its nama |
Methods inherited from class org.figure8.join.services.scripting.ScriptLauncher |
---|
getLogOutputStream, getParameterDefinitions, getScript, getScriptPath, setLogOutputStream, setParameter, setParameters, setScriptPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LIBRARY_PATH_PARAM
protected static java.util.List parameters
ParameterDefinition
s supported by this launcher
protected static final ParameterDefinition targetParam
Constructor Detail |
---|
public RubyScriptLauncher()
public RubyScriptLauncher(java.lang.String scriptPath) throws InvalidParameterException
scriptPath
- the path of script to later execute
InvalidParameterException
- if path cannot be accessedMethod Detail |
---|
public java.lang.String getLibraryPath()
public void setLibraryPath(java.lang.String libraryPath)
libraryPath
- The path of Ruby libraries to loadpublic void runScript(java.util.Properties properties) throws ScriptException
scriptPath
inner
field. Properties passed as param are injected into the Ruby runtime
as arguments. Script can directly use them using the $property
form.
runScript
in class ScriptLauncher
properties
- The runtime properties to inject into execution environment
ScriptException
- if something wrong occurs during script parsing, evaluation, ...public java.util.List getParameterDefinitionsAsList()
getParameterDefinitionsAsList
in interface Configurable
getParameterDefinitionsAsList
in class ScriptLauncher
ParameterDefinition
objectspublic void setParameter(java.lang.String parameterName, java.lang.String parameterValue) throws InvalidParameterException
setParameter
in interface Configurable
setParameter
in class ScriptLauncher
parameterName
- The name of parameter so set value forparameterValue
- The value of the paramater
InvalidParameterException
- if this parameter is not supported by this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |