|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.CommandStore
public final class CommandStore
A repository of the application commands. A command can only be created by
calling the addCommand(String, String, String, Runnable), which
automatically ensures that command is added to this store.
| Constructor Summary | |
|---|---|
CommandStore(CoreProject core)
Accepts the parent of this instance. |
|
| Method Summary | |
|---|---|
Command |
addCommand(java.lang.String name,
java.lang.String description,
java.lang.String maxMemory,
java.lang.Runnable body)
Adds a new command with the specified command body and that can execute in a new vm. |
Command |
getCommand(java.lang.String name)
Looks up the command with the given name. |
java.util.Collection<Command> |
getCommands()
Read-only access to the available commands. |
CoreProject |
getCore()
The parent core for this store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandStore(CoreProject core)
core - | Method Detail |
|---|
public CoreProject getCore()
public Command addCommand(java.lang.String name,
java.lang.String description,
java.lang.String maxMemory,
java.lang.Runnable body)
Command.Command(CommandStore, String, String, String, Runnable)
for a description of the parameters.
name - description - maxMemory - body -
public java.util.Collection<Command> getCommands()
public Command getCommand(java.lang.String name)
name -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||