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 class
NinjaConsole.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 void
doConfigure()
void
doShutdown()
void
doStart()
com.google.inject.Injector
getInjector()
Gets the Guice injector that booted the Ninja application.static void
main(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:Console
Gets 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:
doConfigure
in classAbstractConsole<NinjaConsole>
- Throws:
Exception
-
doStart
public void doStart() throws Exception
- Specified by:
doStart
in classAbstractConsole<NinjaConsole>
- Throws:
Exception
-
doShutdown
public void doShutdown()
- Specified by:
doShutdown
in classAbstractConsole<NinjaConsole>
-
-