public class ConfigurableCommandRegistry extends Object implements CommandRegistry
CommandRegistry
that supports registration of new commands.
Makes sure that no two commands are registered with the same name.
Constructor and Description |
---|
ConfigurableCommandRegistry() |
Modifier and Type | Method and Description |
---|---|
Map<String,MethodTarget> |
listCommands()
Return the mapping from command trigger keywords to implementation.
|
void |
register(String name,
MethodTarget target) |
public Map<String,MethodTarget> listCommands()
CommandRegistry
listCommands
in interface CommandRegistry
public void register(String name, MethodTarget target)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.