package ru.vyarus.guice.examples;

import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import ru.vyarus.dropwizard.guice.GuiceBundle;
import ru.vyarus.dropwizard.guice.GuiceyOptions;
import ru.vyarus.guicey.gsp.ServerPagesBundle;

/**
 * @author Vyacheslav Rusakov
 * @since 23.10.2019
 */
public class GspApplication extends Application<Configuration> {

    public static void main(String[] args) throws Exception {
        new GspApplication().run(args);
    }

    @Override
    public void initialize(Bootstrap<Configuration> bootstrap) {
        bootstrap.addBundle(GuiceBundle.builder()
                .enableAutoConfig(getClass().getPackage().getName())
                .bundles(
                        // global views support
                        ServerPagesBundle.builder().build(),
                        // application registration
                        ServerPagesBundle.app("app", "/app/", "/")
                                // rest path as index page
                                .indexPage("person/")
                                .build())
                // todo temporary until RC3
                .option(GuiceyOptions.TrackDropwizardBundles, false)
                .build());
    }

    @Override
    public void run(Configuration configuration, Environment environment) throws Exception {

    }
}

@@ -227,57 +227,8 @@
 le;%0A
-import ru.vyarus.dropwizard.guice.GuiceyOptions;%0A
 impo
@@ -1116,121 +1116,8 @@
 ())%0A
-                // todo temporary until RC3%0A                .option(GuiceyOptions.TrackDropwizardBundles, false)%0A
     

remove dw tracking workaround