Package adams.scripting
Class ScriptingHelper
- java.lang.Object
-
- adams.scripting.ScriptingHelper
-
public class ScriptingHelper extends Object
Helper class for remote command scripting.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILENAMEthe filename of the props file.static StringKEY_CONNECTIONstatic StringKEY_ENGINEstatic StringKEY_PROCESSORprotected Propertiesm_Propertiesthe properties.protected static ScriptingHelperm_Singletonthe singleton.
-
Constructor Summary
Constructors Modifier Constructor Description protectedScriptingHelper()Initializes the helper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetDefaultConnection()Returns the default scripting connection.RemoteScriptingEnginegetDefaultEngine()Returns the default scripting engine.RemoteCommandProcessorgetDefaultProcessor()Returns the default command processor.static ScriptingHelpergetSingleton()Returns the singleton.protected voidinitialize()Initializes members.
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the filename of the props file.- See Also:
- Constant Field Values
-
KEY_ENGINE
public static final String KEY_ENGINE
- See Also:
- Constant Field Values
-
KEY_CONNECTION
public static final String KEY_CONNECTION
- See Also:
- Constant Field Values
-
KEY_PROCESSOR
public static final String KEY_PROCESSOR
- See Also:
- Constant Field Values
-
m_Singleton
protected static ScriptingHelper m_Singleton
the singleton.
-
m_Properties
protected Properties m_Properties
the properties.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes members.
-
getDefaultEngine
public RemoteScriptingEngine getDefaultEngine()
Returns the default scripting engine.- Returns:
- the default
-
getDefaultConnection
public Connection getDefaultConnection()
Returns the default scripting connection.- Returns:
- the default
-
getDefaultProcessor
public RemoteCommandProcessor getDefaultProcessor()
Returns the default command processor.- Returns:
- the default
-
getSingleton
public static ScriptingHelper getSingleton()
Returns the singleton.- Returns:
- the singleton
-
-