@Override public void run(Configuration configuration, Environment environment) { LOGGER.info("Registering AssetBundle with name: {} for path {}", assetsName, uriPath + '*'); environment.servlets().addServlet(assetsName, createServlet()).addMapping(uriPath + '*'); }
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("/static", "/")); environment.jersey().setUrlPattern("/application/*");
@Override public void initialize(Bootstrap<FulfilmentOptionsConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/assets/*", "/index")); }
@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<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<ShoppingConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/assets/", "/", "index.html")); }
@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<OrderApplicationConfiguration> bootstrap) { bootstrap.addBundle(new AssetsBundle("/assets/", "/", "admin.html")); }
@Override public void initialize(Bootstrap<?> bootstrap) { bootstrap.addBundle(new AssetsBundle()); }
bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/")); bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() { @Override
@Override public void initialize(Bootstrap<LotteryConfiguration> bootstrap) { // set up folders for static content bootstrap.addBundle(new AssetsBundle("/assets/ajax", "/ajax", null, "ajax")); // 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[] }
@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<ExampleConfiguration> bootstrap) { bootstrap.addBundle(this.webSecurityBundle); bootstrap.addBundle(new AssetsBundle("/assets/", "/", "index.html")); }