public class DefaultCommandManagerService extends java.lang.Object implements CommandManagerService
CommandManagerService
that delegates to a default manager.
The default manager will be the first manager that appears in the ServiceLoader
.
It can be changed at any point by simply setting it, though this will fail if any of the
delegating methods have been accessed.
Modifier and Type | Method and Description |
---|---|
static DefaultCommandManagerService |
getInstance() |
java.lang.String |
id()
The unique ID for this service.
|
Command.Builder |
newCommand(java.lang.String name)
Creates a new command builder.
|
CommandManager |
newCommandManager()
Creates a new command manager.
|
void |
setDefaultService(CommandManagerService defaultService) |
public static DefaultCommandManagerService getInstance()
public void setDefaultService(CommandManagerService defaultService)
public java.lang.String id()
CommandManagerService
id
in interface CommandManagerService
public CommandManager newCommandManager()
CommandManagerService
newCommandManager
in interface CommandManagerService
public Command.Builder newCommand(java.lang.String name)
CommandManagerService
newCommand
in interface CommandManagerService