org.sonatype.gshell.command.registry
Class CommandRegistrarSupport

java.lang.Object
  extended by 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
           
 
Fields inherited from interface org.sonatype.gshell.command.registry.CommandRegistrar
DEFAULT_DESCRIPTOR_LOCATION
 
Constructor Summary
protected CommandRegistrarSupport(EventManager events)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.gshell.command.registry.CommandRegistrar
registerCommand, registerCommand
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

CommandRegistrarSupport

protected CommandRegistrarSupport(EventManager events)
Method Detail

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.