@Override public void initialize(Bootstrap<BithubServerConfiguration> bootstrap) { bootstrap.addBundle(new ViewBundle()); }
bootstrap.addBundle(new ViewBundle<>()); bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/")); bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() {
@Override public void initialize(Bootstrap<SupportServerConfiguration> bootstrap) { bootstrap.addBundle(new ViewBundle()); }
@Override public void initialize(Bootstrap<HelloConfiguration> bootstrap) { bootstrap.addBundle(new ViewBundle()); }
@Override public void initialize(Bootstrap<Config> bootstrap) { bootstrap.addBundle(new ViewBundle()); bootstrap.addBundle(new AssetsBundle()); }
@Override public void initialize(Bootstrap<Config> bootstrap) { bootstrap.addBundle(new ViewBundle()); bootstrap.addBundle(new AssetsBundle()); }
@Override public void initialize(Bootstrap<RufusConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/app", "/", "index.html")); bootstrap.addBundle(new ViewBundle<>()); bootstrap.addBundle(new MultiPartBundle()); bootstrap.addBundle(new MigrationsBundle<RufusConfiguration>() { @Override public DataSourceFactory getDataSourceFactory(RufusConfiguration conf) { return conf.getDataSourceFactory(); } }); }
bootstrap.addBundle(new ViewBundle<>()); bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/")); bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() {
@Override public void initialize(Bootstrap<LotteryConfiguration> bootstrap) { // set up folders for static content bootstrap.addBundle(new AssetsBundle("/assets/css", "/css", null, "css")); bootstrap.addBundle(new AssetsBundle("/assets/js", "/js", null, "js")); bootstrap.addBundle(new AssetsBundle("/assets/fonts", "/fonts", null, "fonts")); bootstrap.addBundle(new AssetsBundle("/assets/html", "/html", null, "html")); // setup Freemarker views. bootstrap.addBundle(new ViewBundle()); }
@Override public void initialize(Bootstrap<LotteryConfiguration> bootstrap) { // set up folders for static content bootstrap.addBundle(new AssetsBundle("/assets/css", "/css", null, "css")); bootstrap.addBundle(new AssetsBundle("/assets/js", "/js", null, "js")); bootstrap.addBundle(new AssetsBundle("/assets/fonts", "/fonts", null, "fonts")); bootstrap.addBundle(new AssetsBundle("/assets/html", "/html", null, "html")); // setup Freemarker views. bootstrap.addBundle(new ViewBundle()); // tag::keycloak[] bootstrap.addBundle(new KeycloakBundle<LotteryConfiguration>() { @Override protected KeycloakConfiguration getKeycloakConfiguration(LotteryConfiguration configuration) { return configuration.getKeycloakConfiguration(); } /* OPTIONAL: override getUserClass(), createAuthorizer() and createAuthenticator() if you want to use * a class other than de.ahus1.keycloak.dropwizard.User to be injected by @User*/ }); // end::keycloak[] }