Class ExampleApplicationStart

java.lang.Object
io.dropwizard.core.Application<ExampleConfiguration>
io.jstach.opt.dropwizard.example.ExampleApplicationStart

public class ExampleApplicationStart extends io.dropwizard.core.Application<ExampleConfiguration>
Dropwizard example application entry point.
Author:
agentgt
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      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 class io.dropwizard.core.Application<ExampleConfiguration>
      Throws:
      Exception
    • initialize

      public void initialize(io.dropwizard.core.setup.Bootstrap<ExampleConfiguration> bootstrap)
      Overrides:
      initialize in class io.dropwizard.core.Application<ExampleConfiguration>