Package io.jstach.opt.dropwizard.example
Class ExampleApplicationStart
java.lang.Object
io.dropwizard.core.Application<ExampleConfiguration>
io.jstach.opt.dropwizard.example.ExampleApplicationStart
Dropwizard example application entry point.
- Author:
- agentgt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(io.dropwizard.core.setup.Bootstrap<ExampleConfiguration> bootstrap) static voidMain method entrypoint for the application.voidrun(ExampleConfiguration configuration, io.dropwizard.core.setup.Environment environment) Methods inherited from class io.dropwizard.core.Application
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, getName, onFatalError, run
-
Constructor Details
-
ExampleApplicationStart
public ExampleApplicationStart()Do nothing constructor
-
-
Method Details
-
main
Main method entrypoint for the application. If no args are passed we assume that "server" is the desired mode.- Parameters:
args- if empty["server"]will be used.- Throws:
Exception- if the application fails to start
-
run
public void run(ExampleConfiguration configuration, io.dropwizard.core.setup.Environment environment) throws Exception - Specified by:
runin classio.dropwizard.core.Application<ExampleConfiguration>- Throws:
Exception
-
initialize
- Overrides:
initializein classio.dropwizard.core.Application<ExampleConfiguration>
-