public class OfficeFloorConsoleImpl extends Object implements OfficeFloorConsole
OfficeFloorConsole
implementation.Constructor and Description |
---|
OfficeFloorConsoleImpl(String scriptName,
OfficeFloorCommandFactory[] commandFactories,
Properties environment,
OfficeFloorDecorator[] decorators)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
run(PrintStream out,
PrintStream err,
ProcessStartListener startListener,
ProcessCompletionListener completionListener,
String... arguments)
Runs the
OfficeFloorCommand for the arguments. |
public OfficeFloorConsoleImpl(String scriptName, OfficeFloorCommandFactory[] commandFactories, Properties environment, OfficeFloorDecorator[] decorators)
scriptName
- Name of script invoking this OfficeFloorConsole
.commandFactories
- OfficeFloorCommandFactory
instances.environment
- Environment Properties
.decorators
- OfficeFloorDecorator
instances.public boolean run(PrintStream out, PrintStream err, ProcessStartListener startListener, ProcessCompletionListener completionListener, String... arguments)
OfficeFloorConsole
OfficeFloorCommand
for the arguments.run
in interface OfficeFloorConsole
out
- Console out.err
- Console err.startListener
- ProcessStartListener
. May be null
.completionListener
- ProcessCompletionListener
. May be null
.arguments
- Arguments for the OfficeFloorCommand
instances.true
if successfully run/started
OfficeFloorCommand
.Copyright © 2005–2016. All rights reserved.