Package ninja.standalone
Class NinjaConsole
- java.lang.Object
-
- ninja.standalone.AbstractConsole<NinjaConsole>
-
- ninja.standalone.NinjaConsole
-
- All Implemented Interfaces:
Console<NinjaConsole>
public class NinjaConsole extends AbstractConsole<NinjaConsole>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNinjaConsole.ConsoleBootstrap
-
Field Summary
-
Fields inherited from class ninja.standalone.AbstractConsole
configured, externalConfigurationPath, logger, name, ninjaMode, ninjaProperties, overlayedNinjaProperties, overrideModuleOpt, overridePropertiesOpt, started
-
-
Constructor Summary
Constructors Constructor Description NinjaConsole()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoConfigure()voiddoShutdown()voiddoStart()com.google.inject.InjectorgetInjector()Gets the Guice injector that booted the Ninja application.static voidmain(String[] args)-
Methods inherited from class ninja.standalone.AbstractConsole
checkConfigured, checkNotConfigured, checkStarted, configure, doPostConfigure, doPreConfigure, externalConfigurationPath, getExternalConfigurationPath, getName, getNinjaMode, getNinjaProperties, logStarted, name, ninjaMode, overrideModule, overrideProperties, shutdown, start, tryToUnwrapInjectorException
-
-
-
-
Method Detail
-
getInjector
public com.google.inject.Injector getInjector()
Description copied from interface:ConsoleGets the Guice injector that booted the Ninja application. This value is only accessible after start() is successfully called.- Returns:
- The guice injector
-
doConfigure
public void doConfigure() throws Exception- Specified by:
doConfigurein classAbstractConsole<NinjaConsole>- Throws:
Exception
-
doStart
public void doStart() throws Exception- Specified by:
doStartin classAbstractConsole<NinjaConsole>- Throws:
Exception
-
doShutdown
public void doShutdown()
- Specified by:
doShutdownin classAbstractConsole<NinjaConsole>
-
-