org.sonatype.gshell
Class MainSupport

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

public abstract class MainSupport
extends Object

Support for booting shell applications.

Since:
2.0
Author:
Jason Dillon

Field Summary
protected  List<String> appArgs
           
protected  String command
           
protected  boolean help
           
protected  IO io
           
protected  org.slf4j.Logger log
           
protected  MessageSource messages
           
protected  boolean showErrorTraces
           
protected  Variables vars
           
protected  boolean version
           
 
Constructor Summary
MainSupport()
           
 
Method Summary
 void boot(String... args)
           
protected abstract  Branding createBranding()
           
protected abstract  Shell createShell()
           
protected  void enableAnsiColors(Boolean flag)
           
protected  void exit(int code)
           
protected  Branding getBranding()
           
protected  void setConsoleLogLevel(org.sonatype.gossip.Level level)
           
protected  void setDebug(boolean flag)
           
protected  void setQuiet(boolean flag)
           
protected  void setSystemProperty(String input)
           
protected  void setTerminalType(String type)
           
protected  void setTerminalType(jline.TerminalFactory.Type type)
           
protected  void setTrace(boolean flag)
           
protected  void setVariable(String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log

io

protected final IO io

vars

protected final Variables vars

messages

protected final MessageSource messages

help

protected boolean help

version

protected boolean version

showErrorTraces

protected boolean showErrorTraces

command

protected String command

appArgs

protected List<String> appArgs
Constructor Detail

MainSupport

public MainSupport()
Method Detail

setConsoleLogLevel

protected void setConsoleLogLevel(org.sonatype.gossip.Level level)

setDebug

protected void setDebug(boolean flag)

setTrace

protected void setTrace(boolean flag)

setQuiet

protected void setQuiet(boolean flag)

setVariable

protected void setVariable(String input)

setSystemProperty

protected void setSystemProperty(String input)

enableAnsiColors

protected void enableAnsiColors(Boolean flag)

setTerminalType

protected void setTerminalType(String type)

setTerminalType

protected void setTerminalType(jline.TerminalFactory.Type type)

exit

protected void exit(int code)

getBranding

protected Branding getBranding()

boot

public void boot(String... args)
          throws Exception
Throws:
Exception

createBranding

protected abstract Branding createBranding()

createShell

protected abstract Shell createShell()
                              throws Exception
Throws:
Exception


Copyright © 2008-2011 Sonatype. All Rights Reserved.