Package com.example.helloworld
Class HelloWorldApplication
- java.lang.Object
-
- io.dropwizard.core.Application<HelloWorldConfiguration>
-
- com.example.helloworld.HelloWorldApplication
-
public class HelloWorldApplication extends Application<HelloWorldConfiguration>
-
-
Constructor Summary
Constructors Constructor Description HelloWorldApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the application.voidinitialize(Bootstrap<HelloWorldConfiguration> bootstrap)Initializes the application bootstrap.static voidmain(String[] args)voidrun(HelloWorldConfiguration configuration, Environment environment)When the application runs, this is called after theConfiguredBundles are run.-
Methods inherited from class io.dropwizard.core.Application
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, onFatalError, run
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from class:ApplicationReturns the name of the application.- Overrides:
getNamein classApplication<HelloWorldConfiguration>- Returns:
- the application's name
-
initialize
public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap)
Description copied from class:ApplicationInitializes the application bootstrap.- Overrides:
initializein classApplication<HelloWorldConfiguration>- Parameters:
bootstrap- the application bootstrap
-
run
public void run(HelloWorldConfiguration configuration, Environment environment)
Description copied from class:ApplicationWhen the application runs, this is called after theConfiguredBundles are run. Override it to add providers, resources, etc. for your application.- Specified by:
runin classApplication<HelloWorldConfiguration>- Parameters:
configuration- the parsedConfigurationobjectenvironment- the application'sEnvironment
-
-