public interface CommandProcessor
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_FUNCTION
A list of method names that may be called for this command provider.
|
static String |
COMMAND_SCOPE
The scope of commands provided by this service.
|
Modifier and Type | Method and Description |
---|---|
CommandSession |
createSession(CommandSession parent) |
CommandSession |
createSession(InputStream in,
OutputStream out,
OutputStream err)
Create a new command session associated with IO streams.
|
static final String COMMAND_SCOPE
static final String COMMAND_FUNCTION
Help information for the command may be supplied with a space as separation.
CommandSession createSession(InputStream in, OutputStream out, OutputStream err)
The session is bound to the life cycle of the bundle getting this service. The session will be automatically closed when this bundle is stopped or the service is returned.
The shell will provide any available commands to this session and can set additional variables.
in
- The value used for System.inout
- The stream used for System.outerr
- The stream used for System.errCommandSession createSession(CommandSession parent)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.