org.sonatype.gshell.guice
Class CommandRegistrarImpl

java.lang.Object
  extended by org.sonatype.gshell.command.registry.CommandRegistrarSupport
      extended by org.sonatype.gshell.guice.CommandRegistrarImpl
All Implemented Interfaces:
CommandRegistrar

@Singleton
public class CommandRegistrarImpl
extends CommandRegistrarSupport

Guice CommandRegistrar.

Since:
2.5
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.sonatype.gshell.command.registry.CommandRegistrarSupport
log
 
Fields inherited from interface org.sonatype.gshell.command.registry.CommandRegistrar
DEFAULT_DESCRIPTOR_LOCATION
 
Constructor Summary
CommandRegistrarImpl(org.sonatype.guice.bean.locators.MutableBeanLocator container, EventManager events, CommandRegistry registry)
           
 
Method Summary
 void registerCommand(String className)
           
 void registerCommand(String name, String className)
           
 
Methods inherited from class org.sonatype.gshell.command.registry.CommandRegistrarSupport
discoverDescriptors, getDescriptors, getDescriptorSearchPath, registerCommand, registerCommands, registerCommandSet, setDescriptorSearchPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandRegistrarImpl

@Inject
public CommandRegistrarImpl(org.sonatype.guice.bean.locators.MutableBeanLocator container,
                                   EventManager events,
                                   CommandRegistry registry)
Method Detail

registerCommand

public void registerCommand(String name,
                            String className)
                     throws Exception
Throws:
Exception

registerCommand

public void registerCommand(String className)
                     throws Exception
Throws:
Exception


Copyright © 2008-2011 Sonatype. All Rights Reserved.