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
ConfiguredBundle s are run. |
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, onFatalError, onFatalError, run
public String getName()
Application
getName
in class Application<HelloWorldConfiguration>
public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap)
Application
initialize
in class Application<HelloWorldConfiguration>
bootstrap
- the application bootstrappublic void run(HelloWorldConfiguration configuration, Environment environment)
Application
ConfiguredBundle
s 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 Environment
Copyright © 2011. All rights reserved.