bootstrap.addBundle(new AssetsBundle("/app", "/", "index.html", "static"));
@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(); } }); }
bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/")); bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() { @Override
@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<SidewinderConfig> bootstrap) { if (!Boolean.parseBoolean(System.getProperty(ConfigConstants.UI_DISABLE, "true"))) { bootstrap.addBundle(new AssetsBundle("/web", "/ui", "index.html")); } }
@Override public void initialize(Bootstrap<CONF> bootstrap) { // Static stuff from under /html (except for root level things // like /index.html that need special handling) bootstrap.addBundle(new AssetsBundle("/html")); }
@Override public void initialize(Bootstrap<LotteryConfiguration> bootstrap) { // set up folders for static content bootstrap.addBundle(new AssetsBundle("/assets/ajax", "/ajax", null, "ajax")); }
@Override public void initialize(Bootstrap<OntologyConfiguration> bootstrap) { // Add bundle for static asset directories bootstrap.addBundle(new AssetsBundle("/static", "/", "index.html", "static")); // Add webjars AssetsBundle, to include bootstrap, etc. bootstrap.addBundle(new AssetsBundle("/META-INF/resources/webjars", "/webjars", null, "webjars")); }
@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<StreamlineConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/assets", "/", "index.html", "static")); super.initialize(bootstrap); }
@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<Config> bootstrap) { bootstrap.addBundle(new ViewBundle()); bootstrap.addBundle(new AssetsBundle()); }
@Override public void initialize(Bootstrap<RegistryConfiguration> bootstrap) { // always deploy UI on /ui. If there is no other filter like Confluent etc, redirect / to /ui bootstrap.addBundle(new AssetsBundle("/assets", "/ui", "index.html", "static")); bootstrap.addBundle(new SwaggerBundle<RegistryConfiguration>() { @Override protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(RegistryConfiguration registryConfiguration) { return registryConfiguration.getSwaggerBundleConfiguration(); } }); super.initialize(bootstrap); }
@Override public void initialize(Bootstrap<RegistryConfiguration> bootstrap) { // always deploy UI on /ui. If there is no other filter like Confluent etc, redirect / to /ui bootstrap.addBundle(new AssetsBundle("/assets", "/ui", "index.html", "static")); bootstrap.addBundle(new SwaggerBundle<RegistryConfiguration>() { @Override protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(RegistryConfiguration registryConfiguration) { return registryConfiguration.getSwaggerBundleConfiguration(); } }); super.initialize(bootstrap); }
@Override public void initialize(Bootstrap<Config> bootstrap) { bootstrap.addBundle(new ViewBundle()); bootstrap.addBundle(new AssetsBundle()); }
@Override public void initialize(Bootstrap<ExampleConfiguration> bootstrap) { bootstrap.addBundle(this.webSecurityBundle); bootstrap.addBundle(new AssetsBundle("/assets/", "/", "index.html")); }
@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<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()) )); }