public class HelloWorldApplication extends Application<HelloWorldConfiguration>
| Constructor and Description |
|---|
HelloWorldApplication() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the application.
|
void |
initialize(Bootstrap<HelloWorldConfiguration> bootstrap)
Initializes the application bootstrap.
|
static void |
main(String[] args) |
void |
run(HelloWorldConfiguration configuration,
Environment environment)
When the application runs, this is called after the
ConfiguredBundles are run. |
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, onFatalError, onFatalError, runpublic String getName()
ApplicationgetName in class Application<HelloWorldConfiguration>public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap)
Applicationinitialize in class Application<HelloWorldConfiguration>bootstrap - the application bootstrappublic void run(HelloWorldConfiguration configuration, Environment environment)
ApplicationConfiguredBundles are run. Override it to add
providers, resources, etc. for your application.run in class Application<HelloWorldConfiguration>configuration - the parsed Configuration objectenvironment - the application's EnvironmentCopyright © 2011. All rights reserved.