|
Knopflerfish OSGi 2.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommandGroup
Interface for a command group service. This service will be used by the console service to present the commands to the user.
The service object must then be registered under the class name
org.knopflerfish.service.console.CommandGroup
with the
property "groupName" set to the command group name.
CommandGroupAdapter
,
ConsoleService
Field Summary | |
---|---|
static java.lang.String |
GROUP_NAME
Property key for group name to use when registering a CommandGroup. |
Method Summary | |
---|---|
int |
execute(java.lang.String[] args,
java.io.Reader in,
java.io.PrintWriter out,
Session session)
Executes a command in the command group. |
java.lang.String |
getGroupName()
Returns a string with the command group name. |
java.lang.String |
getLongHelp()
Returns a string containing a long help text for the command group. |
java.lang.String |
getShortHelp()
Returns a string containing a short help text for the command group. |
Field Detail |
---|
static final java.lang.String GROUP_NAME
Method Detail |
---|
java.lang.String getGroupName()
java.lang.String getShortHelp()
java.lang.String getLongHelp()
int execute(java.lang.String[] args, java.io.Reader in, java.io.PrintWriter out, Session session)
args
- argument listout
- output write for command to print result toin
- input reader for command to read interactivelysession
- a handle to command session or null if single command
|
Knopflerfish OSGi 2.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |