@Override public void initialize(Bootstrap<BithubServerConfiguration> bootstrap) { bootstrap.addBundle(new ViewBundle()); }
@Override public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) { // Enable variable substitution with environment variables bootstrap.setConfigurationSourceProvider( new SubstitutingSourceProvider( bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false) ) ); bootstrap.addCommand(new RenderCommand()); bootstrap.addBundle(new AssetsBundle()); bootstrap.addBundle(new MigrationsBundle<HelloWorldConfiguration>() { @Override public DataSourceFactory getDataSourceFactory(HelloWorldConfiguration configuration) { return configuration.getDataSourceFactory(); } }); bootstrap.addBundle(hibernateBundle); bootstrap.addBundle(new ViewBundle<HelloWorldConfiguration>() { @Override public Map<String, Map<String, String>> getViewConfiguration(HelloWorldConfiguration configuration) { return configuration.getViewRendererConfiguration(); } }); }
@Override public void initialize(Bootstrap<WhisperServerConfiguration> bootstrap) { bootstrap.addCommand(new DirectoryCommand()); bootstrap.addCommand(new VacuumCommand()); bootstrap.addCommand(new TrimMessagesCommand()); bootstrap.addCommand(new PeriodicStatsCommand()); bootstrap.addCommand(new DeleteUserCommand()); bootstrap.addCommand(new CertificateCommand()); bootstrap.addBundle(new NameableMigrationsBundle<WhisperServerConfiguration>("accountdb", "accountsdb.xml") { @Override public DataSourceFactory getDataSourceFactory(WhisperServerConfiguration configuration) { return configuration.getDataSourceFactory(); } }); bootstrap.addBundle(new NameableMigrationsBundle<WhisperServerConfiguration>("messagedb", "messagedb.xml") { @Override public DataSourceFactory getDataSourceFactory(WhisperServerConfiguration configuration) { return configuration.getMessageStoreConfiguration(); } }); bootstrap.addBundle(new NameableMigrationsBundle<WhisperServerConfiguration>("abusedb", "abusedb.xml") { @Override public PooledDataSourceFactory getDataSourceFactory(WhisperServerConfiguration configuration) { return configuration.getAbuseDatabaseConfiguration(); } }); }
.modules(additionalModules) .build(); bootstrap.addBundle(guiceBundle); bootstrap.addBundle(new CorsBundle()); bootstrap.addBundle(new ViewBundle<>()); bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/")); bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() { @Override public DataSourceFactory getDataSourceFactory(final SingularityConfiguration configuration) { bootstrap.addBundle(bundle); bootstrap.addBundle(configuredBundle);
@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<MacroBaseConf> bootstrap) { bootstrap.addBundle(new AssetsBundle("/frontend", "/", "console.html")); }
@Override public void initialize(Bootstrap<DoctorKafkaAppConfig> bootstrap) { bootstrap.addBundle(new AssetsBundle("/webapp/pages/", "/", "index.html")); }
@Override public void initialize(Bootstrap<SelfServiceApplicationConfiguration> bootstrap) { super.initialize(bootstrap); bootstrap.addBundle(new MultiPartBundle()); bootstrap.addBundle(new AssetsBundle("/webapp/dist", "/", "index.html")); bootstrap.addBundle(new TemplateConfigBundle( new TemplateConfigBundleConfiguration().fileIncludePath(ServiceUtils.getConfPath()) )); }
@Override public void initialize(Bootstrap<NewtsConfig> bootstrap) { bootstrap.addCommand(new InitCommand()); bootstrap.addBundle(new AssetsBundle("/app", UI_URL_PATH, "index.html")); }
@Override public void initialize(Bootstrap<NewtsConfig> bootstrap) { bootstrap.addCommand(new InitCommand()); bootstrap.addBundle(new AssetsBundle("/app", UI_URL_PATH, "index.html")); }
@Override public void initialize(Bootstrap<MapMatchingServerConfiguration> bootstrap) { bootstrap.addBundle(new GraphHopperBundle()); bootstrap.addCommand(new ImportCommand()); bootstrap.addCommand(new MatchCommand()); bootstrap.addCommand(new GetBoundsCommand()); bootstrap.addCommand(new MeasurementCommand()); bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/mapmatching-webapp/", "/app/", "index.html")); }
@Override public void initialize(Bootstrap<SecurityServiceConfiguration> bootstrap) { bootstrap.addBundle(new TemplateConfigBundle( new TemplateConfigBundleConfiguration().fileIncludePath(ServiceUtils.getConfPath()) )); }
@Override public void initialize(final Bootstrap<Configuration> bootstrap) { final GuiceBundle<Configuration> jersey2GuiceBundle = newBuilder() .addModule(new TestModule()) .enableAutoConfig(this.getClass().getPackage().getName()) .build(); bootstrap.addBundle(jersey2GuiceBundle); }
@Override public void initialize(Bootstrap<Configuration> bootstrap) { redisClient = RedisClient.create("redis://localhost:7006"); RequestRateLimiterFactory factory = new RedisRateLimiterFactory(redisClient); //RequestRateLimiterFactory factory = new InMemoryRateLimiterFactory(); bootstrap.addBundle(new RateLimitBundle(factory)); }
@Override public void initialize(Bootstrap<MutableSchedulerConfiguration> bootstrap) { super.initialize(bootstrap); StrSubstitutor strSubstitutor = new StrSubstitutor(new EnvironmentVariableLookup(false)); strSubstitutor.setEnableSubstitutionInVariables(true); bootstrap.addBundle(new Java8Bundle()); bootstrap.setConfigurationSourceProvider( new SubstitutingSourceProvider( bootstrap.getConfigurationSourceProvider(), strSubstitutor)); }
@Override public void initialize(final Bootstrap<Configuration> bootstrap) { final GuiceBundle<Configuration> jersey2GuiceBundle = GuiceBundle.defaultBuilder(Configuration.class) .modules(new TestModule()) .build(); bootstrap.addBundle(jersey2GuiceBundle); }