|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandService
Resolves command names to their implementations.
This interface isn't intended to be implemented by plugins. It is rather a representation of the contract from the CLI environment to plugins. You can inject this component to your code by using this interface.
Bees CLI implements CommandService to encapsulate automatic plugin discovery logic.
| Method Summary | |
|---|---|
ACommand |
getCommand(String name)
Resolves a command to its implementation. |
| Method Detail |
|---|
ACommand getCommand(String name)
throws IOException,
AbortException
name - Name of the command, such as "app:deploy", "help", or "foo:bar".
IOException - If a fatal error occurs during the retrieval of the command implementation.
AbortException - If an anticipated problem happens, this exception is thrown. The caller must
handle this exception without reporting a stack trace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||