|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.services.scripting.ScriptLauncherAdapterSupport
public abstract class ScriptLauncherAdapterSupport
This is a support class to extend for classes wanting to launch scripts.
| Field Summary | |
|---|---|
protected java.lang.String |
name
The name identifying this script adapter. |
| Constructor Summary | |
|---|---|
ScriptLauncherAdapterSupport()
|
|
| Method Summary | |
|---|---|
protected java.io.File |
createNewLogFile()
|
java.lang.String |
getName()
Retrieve the name of this consumer. |
ParameterDefinition[] |
getParameterDefinitions()
Get this object parameters definitions as an array |
java.util.List |
getParameterDefinitionsAsList()
Get this object parameters definitions as a list |
abstract ScriptLauncher |
getScriptLauncher()
Subclasses must implement this method in order to specify the ScriptLauncher implementation to use (and thus the scripting language). |
protected boolean |
saveLogInfoIfAvailable(ScriptLogInfo logInfo)
Save a ScriptLogInfo into datastore if a DAO if available |
void |
setName(java.lang.String name)
Set the name identifying this consumer. |
void |
setParameter(ParameterDefinition parameter,
java.lang.String parameterValue)
Set the value of a parameter using its definition. |
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Set the value of a parameter using its name |
void |
setParameters(java.util.Properties parameters)
Convenient methods for setting all attributes values using a single method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
| Constructor Detail |
|---|
public ScriptLauncherAdapterSupport()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of this consumerpublic abstract ScriptLauncher getScriptLauncher()
public java.util.List getParameterDefinitionsAsList()
getParameterDefinitionsAsList in interface ConfigurableParameterDefinition objectspublic ParameterDefinition[] getParameterDefinitions()
getParameterDefinitions in interface ConfigurableParameterDefinition objects
public void setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
throws InvalidParameterException
setParameter in interface ConfigurableparameterName - The name of parameter so set value forparameterValue - The value of the paramater
InvalidParameterException - if this parameter is not supported by this object
public void setParameter(ParameterDefinition parameter,
java.lang.String parameterValue)
throws InvalidParameterException
setParameter(String, String)
so that subclasses may not ovveride this implementation.
setParameter in interface Configurableparameter - The definitino of the paramater to setparameterValue - The value of the parameter
InvalidParameterException - if this parameter is not supported by this object
public void setParameters(java.util.Properties parameters)
throws InvalidParameterException
setParameters in interface Configurableparameters - Properties where keys are parameter names
InvalidParameterException - if one of these parameters is not supported by this objectprotected java.io.File createNewLogFile()
protected boolean saveLogInfoIfAvailable(ScriptLogInfo logInfo)
logInfo - The bean representing log info to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||