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, waitregisterCommand, registerCommandprotected CommandRegistrarSupport(EventManager events)
public String[] getDescriptorSearchPath()
getDescriptorSearchPath in interface CommandRegistrarpublic void setDescriptorSearchPath(String... path)
setDescriptorSearchPath in interface CommandRegistrarpublic List<CommandSetDescriptor> getDescriptors()
getDescriptors in interface CommandRegistrarpublic void registerCommands()
throws Exception
registerCommands in interface CommandRegistrarExceptionprotected void registerCommandSet(CommandSetDescriptor config)
protected void registerCommand(CommandDescriptor config)
protected List<CommandsDescriptor> discoverDescriptors() throws Exception
ExceptionCopyright © 2008-2012 Sonatype. All Rights Reserved.