org.sonatype.gshell.command.registry
Interface CommandRegistrar

All Known Implementing Classes:
CommandRegistrarImpl, CommandRegistrarSupport

public interface CommandRegistrar

Registers commands.

Since:
2.5
Author:
Jason Dillon

Field Summary
static String DEFAULT_DESCRIPTOR_LOCATION
           
 
Method Summary
 List<CommandSetDescriptor> getDescriptors()
           
 String[] getDescriptorSearchPath()
           
 void registerCommand(String type)
           
 void registerCommand(String name, String type)
           
 void registerCommands()
           
 void setDescriptorSearchPath(String... path)
           
 

Field Detail

DEFAULT_DESCRIPTOR_LOCATION

static final String DEFAULT_DESCRIPTOR_LOCATION
Since:
2.1
See Also:
Constant Field Values
Method Detail

registerCommands

void registerCommands()
                      throws Exception
Throws:
Exception

registerCommand

void registerCommand(String name,
                     String type)
                     throws Exception
Throws:
Exception

registerCommand

void registerCommand(String type)
                     throws Exception
Throws:
Exception

getDescriptorSearchPath

String[] getDescriptorSearchPath()
Since:
2.2

setDescriptorSearchPath

void setDescriptorSearchPath(String... path)
Since:
2.2

getDescriptors

List<CommandSetDescriptor> getDescriptors()
Since:
2.1


Copyright © 2008-2011 Sonatype. All Rights Reserved.