org.sonatype.gshell
Class MainSupport
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MainSupport
public MainSupport()
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.