org.sonatype.gshell.command.registry
Class CommandRegistrarSupport
java.lang.Object
org.sonatype.gshell.command.registry.CommandRegistrarSupport
- All Implemented Interfaces:
- CommandRegistrar
- Direct Known Subclasses:
- CommandRegistrarImpl
public abstract class CommandRegistrarSupport
- extends Object
- implements CommandRegistrar
Support for CommandRegistrar implementations.
- Since:
- 2.5
- Author:
- Jason Dillon
|
Field Summary |
protected org.slf4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
CommandRegistrarSupport
protected CommandRegistrarSupport(EventManager events)
getDescriptorSearchPath
public String[] getDescriptorSearchPath()
- Specified by:
getDescriptorSearchPath in interface CommandRegistrar
setDescriptorSearchPath
public void setDescriptorSearchPath(String... path)
- Specified by:
setDescriptorSearchPath in interface CommandRegistrar
getDescriptors
public List<CommandSetDescriptor> getDescriptors()
- Specified by:
getDescriptors in interface CommandRegistrar
registerCommands
public void registerCommands()
throws Exception
- Specified by:
registerCommands in interface CommandRegistrar
- Throws:
Exception
registerCommandSet
protected void registerCommandSet(CommandSetDescriptor config)
registerCommand
protected void registerCommand(CommandDescriptor config)
discoverDescriptors
protected List<CommandsDescriptor> discoverDescriptors()
throws Exception
- Throws:
Exception
Copyright © 2008-2011 Sonatype. All Rights Reserved.