@groovy.transform.CompileStatic class CommandRegistry extends java.lang.Object
Registry of available commands
Modifiers | Name | Description |
---|---|---|
private static java.util.List<CommandFactory> |
registeredCommandFactories |
|
private static java.util.Map<java.lang.String, Command> |
registeredCommands |
Constructor and description |
---|
CommandRegistry
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
|
|
static java.util.Collection<Command> |
findCommands(ProfileRepository repository) |
|
static java.util.Collection<Command> |
findCommands(Profile profile, boolean inherited) |
|
static Command |
getCommand(java.lang.String name, ProfileRepository repository) Returns a command for the given name and repository |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns a command for the given name and repository
name
- The command namerepository
- The ProfileRepository instance