public interface Console<T extends Console>
Modifier and Type | Method and Description |
---|---|
T |
configure()
Configures the standalone to prepare for being started.
|
T |
externalConfigurationPath(String externalConfigurationPath) |
String |
getExternalConfigurationPath() |
com.google.inject.Injector |
getInjector()
Gets the Guice injector that booted the Ninja application.
|
String |
getName() |
NinjaMode |
getNinjaMode() |
NinjaPropertiesImpl |
getNinjaProperties()
Gets the NinjaProperties that were used to configure Ninja.
|
T |
name(String name) |
T |
ninjaMode(NinjaMode ninjaMode) |
T |
shutdown()
Shutdown Ninja and underlying server as safely as possible (tries not
to cause exceptions to be thrown).
|
T |
start()
Configures (if not yet done), boots Ninja application and starts the
underlying server.
|
T configure() throws Exception
Exception
- Thrown if an exception occurs during configurationString getExternalConfigurationPath()
com.google.inject.Injector getInjector()
IllegalStateException
- Thrown if attempting to access this variable
before start() is successfully called.String getName()
NinjaMode getNinjaMode()
NinjaPropertiesImpl getNinjaProperties()
IllegalStateException
- Thrown if attempting to access this variable
before configure() is successfully called.T shutdown()
Copyright © 2019 ninjaframework. All rights reserved.