@Override public void initialize(Bootstrap<TimbuctooConfiguration> bootstrap) { //bundles activeMqBundle = new ActiveMQBundle(); bootstrap.addBundle(activeMqBundle); bootstrap.addBundle(new MultiPartBundle()); bootstrap.addBundle(new AssetsBundle("/static", "/static", "index.html")); /* * Make it possible to use environment variables in the config. * see: http://www.dropwizard.io/0.9.1/docs/manual/core.html#environment-variables */ bootstrap.setConfigurationSourceProvider( new SubstitutingSourceProvider( bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(true) )); }
@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(); } }); }
@Override public void initialize(Bootstrap<IronTestConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/assets/app", "/ui", "index.htm", "ui")); bootstrap.addBundle(new AssetsBundle("/META-INF/resources/webjars", "/ui/lib", null, "uilib")); bootstrap.addBundle(jaxWsBundle); bootstrap.addBundle(new MultiPartBundle()); bootstrap.addBundle(new ViewBundle<IronTestConfiguration>(){ @Override public Map<String, Map<String, String>> getViewConfiguration(IronTestConfiguration config) { return config.getViewRendererConfiguration(); } }); Configuration.setDefaults(new Configuration.Defaults() { private final JsonProvider jsonProvider = new JacksonJsonProvider(); private final MappingProvider mappingProvider = new JacksonMappingProvider(); @Override public JsonProvider jsonProvider() { return jsonProvider; } @Override public MappingProvider mappingProvider() { return mappingProvider; } @Override public Set<Option> options() { return EnumSet.noneOf(Option.class); } }); }
@Override public void initialize(Bootstrap<CroudTripConfig> bootstrap) { bootstrap.addBundle(hibernateBundle); bootstrap.addBundle(new MultiPartBundle()); }