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 String
FILENAME
the filename of the props file.static String
KEY_CONNECTION
static String
KEY_ENGINE
static String
KEY_PROCESSOR
protected Properties
m_Properties
the properties.protected static ScriptingHelper
m_Singleton
the singleton.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ScriptingHelper()
Initializes the helper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getDefaultConnection()
Returns the default scripting connection.RemoteScriptingEngine
getDefaultEngine()
Returns the default scripting engine.RemoteCommandProcessor
getDefaultProcessor()
Returns the default command processor.static ScriptingHelper
getSingleton()
Returns the singleton.protected void
initialize()
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
-
-