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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(io.dropwizard.core.setup.Bootstrap<ExampleConfiguration> bootstrap) static void
Main method entrypoint for the application.void
run
(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()
-
-
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:
run
in classio.dropwizard.core.Application<ExampleConfiguration>
- Throws:
Exception
-
initialize
- Overrides:
initialize
in classio.dropwizard.core.Application<ExampleConfiguration>
-