public class OpenOfficeConsoleCommand extends Object implements OfficeFloorCommandFactory, OfficeFloorCommand
OfficeFloorCommand
to open the OfficeConsole
.Modifier and Type | Class and Description |
---|---|
static class |
OpenOfficeConsoleCommand.OpenOfficeConsoleManagedProcess
ManagedProcess to open the OfficeConsole . |
Constructor and Description |
---|
OpenOfficeConsoleCommand() |
Modifier and Type | Method and Description |
---|---|
OfficeFloorCommand |
createCommand()
Creates the
OfficeFloorCommand . |
ManagedProcess |
createManagedProcess(OfficeFloorCommandEnvironment environment)
Creates the
ManagedProcess to undertake the command. |
String |
getCommandName()
Obtains the name of this
OfficeFloorCommand . |
String |
getDescription()
Obtains a description of this
OfficeFloorCommand . |
OfficeFloorCommandParameter[] |
getParameters()
Obtains the possible
OfficeFloorCommandParameter instances for
this OfficeFloorCommand . |
void |
initialiseEnvironment(OfficeFloorCommandContext context)
Initialises this command's environment.
|
public String getCommandName()
OfficeFloorCommandFactory
OfficeFloorCommand
.getCommandName
in interface OfficeFloorCommandFactory
OfficeFloorCommand
.public OfficeFloorCommand createCommand()
OfficeFloorCommandFactory
OfficeFloorCommand
.createCommand
in interface OfficeFloorCommandFactory
OfficeFloorCommand
.public String getDescription()
OfficeFloorCommand
OfficeFloorCommand
.getDescription
in interface OfficeFloorCommand
OfficeFloorCommand
.public OfficeFloorCommandParameter[] getParameters()
OfficeFloorCommand
OfficeFloorCommandParameter
instances for
this OfficeFloorCommand
.getParameters
in interface OfficeFloorCommand
OfficeFloorCommandParameter
instances.public void initialiseEnvironment(OfficeFloorCommandContext context) throws Exception
OfficeFloorCommand
Initialises this command's environment.
This allows to register additional class path entries for the
ManagedProcess
to be created by this command. It also allows the
additional class path entries to be decorated by the
OfficeFloorDecorator
instances.
initialiseEnvironment
in interface OfficeFloorCommand
context
- OfficeFloorCommandContext
.Exception
- If fails to initialise this command.public ManagedProcess createManagedProcess(OfficeFloorCommandEnvironment environment) throws Exception
OfficeFloorCommand
ManagedProcess
to undertake the command.createManagedProcess
in interface OfficeFloorCommand
environment
- OfficeFloorCommandEnvironment
.ManagedProcess
to undertake the command.Exception
- If fails to create the ManagedProcess
.Copyright © 2005–2016. All rights reserved.