day_1/dropwizard_example/src/main/java/net/mancke/examples/dropwizard/Main.java
@Override
    public void run(final ServiceConfiguration configuration,
                    final Environment environment) throws Exception {

        environment.healthChecks().register("Demo Health check", new ExampleHealthCheck());
        environment.jersey().register(new ExampleResource(configuration));
    }
/**
     * The run method does the essential service configuration. Here we add all
     * Resources, Management Classes and HealthChecks.
     *
     * @param configuration the configuration
     * @param environment   the dropwizard environment
     */
The run method does the essential service configuration. Here we add all
Resources, Management Classes and HealthChecks.

@param configuration the configuration
@param environment   the dropwizard environment
The run method does the essential service configuration . Here we add all Resources Management Classes and HealthChecks . @param configuration the configuration @param environment the dropwizard environment
@Override
    public void run(final ServiceConfiguration configuration,
                    final Environment environment) throws Exception {
        environment.healthChecks().register("Demo Health check", new ExampleHealthCheck());
        environment.jersey().register(new ExampleResource(configuration));
    }
@ Override public void run ( final ServiceConfiguration configuration , final Environment environment ) throws Exception { environment . healthChecks ( ) . register ( "Demo Health check" , new ExampleHealthCheck ( ) ) ; environment . jersey ( ) . register ( new ExampleResource ( configuration ) ) ; }
The run method does the essential service configuration.
The run method does the essential service configuration .