Package gda.util
Class CommandRunnerRunnable
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.util.CommandRunnerRunnable
- All Implemented Interfaces:
Configurable,Findable,Runnable
Findable implementation of Runnable whose run method calls
ICommandRunner.runCommand(java.lang.String)
with the command property set by setCommand.
Any initial setup (importing modules etc) can be done by setting the initialSetup field. This setup will be run when this runner is configured and each time the namespace is reset.
Set the command to null or empty for the run method to do nothing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidrun()voidsetCommand(String command) voidsetInitialSetup(String initialSetup) Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
CommandRunnerRunnable
public CommandRunnerRunnable()
-
-
Method Details
-
configure
public void configure()Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase
-
getCommand
- Returns:
- command that is sent to InterfaceProvider.getCommandRunner().runCommand()
-
setCommand
- Parameters:
command- that is sent to InterfaceProvider.getCommandRunner().runCommand()
-
run
public void run() -
setInitialSetup
-