Package com.example.helloworld
Class HelloWorldApplication
java.lang.Object
io.dropwizard.core.Application<HelloWorldConfiguration>
com.example.helloworld.HelloWorldApplication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the application.void
initialize
(Bootstrap<HelloWorldConfiguration> bootstrap) Initializes the application bootstrap.static void
void
run
(HelloWorldConfiguration configuration, Environment environment) When the application runs, this is called after theConfiguredBundle
s are run.Methods inherited from class io.dropwizard.core.Application
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, onFatalError, run
-
Constructor Details
-
HelloWorldApplication
public HelloWorldApplication()
-
-
Method Details
-
main
- Throws:
Exception
-
getName
Description copied from class:Application
Returns the name of the application.- Overrides:
getName
in classApplication<HelloWorldConfiguration>
- Returns:
- the application's name
-
initialize
Description copied from class:Application
Initializes the application bootstrap.- Overrides:
initialize
in classApplication<HelloWorldConfiguration>
- Parameters:
bootstrap
- the application bootstrap
-
run
Description copied from class:Application
When the application runs, this is called after theConfiguredBundle
s are run. Override it to add providers, resources, etc. for your application.- Specified by:
run
in classApplication<HelloWorldConfiguration>
- Parameters:
configuration
- the parsedConfiguration
objectenvironment
- the application'sEnvironment
-