public abstract class CommandRegistrarSupport extends Object implements CommandRegistrar
CommandRegistrar
implementations.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
DEFAULT_DESCRIPTOR_LOCATION
Modifier | Constructor and Description |
---|---|
protected |
CommandRegistrarSupport(EventManager events) |
Modifier and Type | Method and Description |
---|---|
protected List<CommandsDescriptor> |
discoverDescriptors() |
List<CommandSetDescriptor> |
getDescriptors() |
String[] |
getDescriptorSearchPath() |
protected void |
registerCommand(CommandDescriptor config) |
void |
registerCommands() |
protected void |
registerCommandSet(CommandSetDescriptor config) |
void |
setDescriptorSearchPath(String... path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerCommand, registerCommand
protected CommandRegistrarSupport(EventManager events)
public String[] getDescriptorSearchPath()
getDescriptorSearchPath
in interface CommandRegistrar
public void setDescriptorSearchPath(String... path)
setDescriptorSearchPath
in interface CommandRegistrar
public List<CommandSetDescriptor> getDescriptors()
getDescriptors
in interface CommandRegistrar
public void registerCommands() throws Exception
registerCommands
in interface CommandRegistrar
Exception
protected void registerCommandSet(CommandSetDescriptor config)
protected void registerCommand(CommandDescriptor config)
protected List<CommandsDescriptor> discoverDescriptors() throws Exception
Exception
Copyright © 2008-2012 Sonatype. All Rights Reserved.