org.sonatype.gshell.guice
Class GuiceMainSupport

java.lang.Object
  extended by org.sonatype.gshell.MainSupport
      extended by org.sonatype.gshell.guice.GuiceMainSupport
Direct Known Subclasses:
ShellRunner

public abstract class GuiceMainSupport
extends MainSupport

Support for booting shell applications with Guice.

Since:
2.6.4
Author:
Jason Dillon

Nested Class Summary
protected  class GuiceMainSupport.BootModule
           
 
Field Summary
protected  org.sonatype.guice.bean.locators.DefaultBeanLocator container
           
 
Fields inherited from class org.sonatype.gshell.MainSupport
appArgs, command, help, io, log, messages, showErrorTraces, vars, version
 
Constructor Summary
GuiceMainSupport()
           
 
Method Summary
protected  void configure(List<com.google.inject.Module> modules)
           
protected  Shell createShell()
           
protected  org.sonatype.guice.bean.binders.SpaceModule createSpaceModule()
           
 
Methods inherited from class org.sonatype.gshell.MainSupport
boot, createBranding, enableAnsiColors, exit, getBranding, setConsoleLogLevel, setDebug, setQuiet, setSystemProperty, setTerminalType, setTerminalType, setTrace, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected final org.sonatype.guice.bean.locators.DefaultBeanLocator container
Constructor Detail

GuiceMainSupport

public GuiceMainSupport()
Method Detail

createShell

protected Shell createShell()
                     throws Exception
Specified by:
createShell in class MainSupport
Throws:
Exception

configure

protected void configure(List<com.google.inject.Module> modules)

createSpaceModule

protected org.sonatype.guice.bean.binders.SpaceModule createSpaceModule()


Copyright © 2008-2011 Sonatype. All Rights Reserved.