@Override public void initialize(Bootstrap<HVDFConfiguration> configBootstrap) { configBootstrap.setName("hvdf"); configBootstrap.addCommand( new ServerMonitoringSimulatorLoad() ); }
@Override public void initialize(Bootstrap<Configuration> bootstrap) { bootstrap.setName("pizza-application"); }
throw new IllegalStateException("The singleton service is null"); final Bootstrap<T> bootstrap = new Bootstrap<T>(dwService); dwService.initialize(bootstrap); final T configuration = parseConfiguration(getConfigurationFile(), getConfigurationClass(), bootstrap.getObjectMapperFactory().copy()); if (configuration != null) { logger.info("The WizToWar adapter defers logging configuration to the application server"); new LoggingFactory(configuration.getLoggingConfiguration(), bootstrap.getName()).configure(); environment = new ExtendedEnvironment(bootstrap.getName(), configuration, bootstrap.getObjectMapperFactory(), validator); final Map<String, Object> properties = this.getProperties(servletContext); if (properties != null) { bootstrap.runWithBundles(configuration, environment); //Fix for issue https://github.com/twilio/wiztowar/issues/2
@Override public void initialize(Bootstrap<OpenIDDemoConfiguration> openIDDemoConfigurationBootstrap) { // Bundles openIDDemoConfigurationBootstrap.addBundle(new AssetsBundle("/assets/images", "/images")); openIDDemoConfigurationBootstrap.addBundle(new AssetsBundle("/assets/jquery", "/jquery")); openIDDemoConfigurationBootstrap.addBundle(new ViewBundle()); }
@Override public void runWithBundles(C configuration, Environment environment) throws Exception { environment.addServerLifecycleListener(new ServerLifecycleListener() { @Override public void serverStarted(Server server) { jettyServer = server; } }); DropwizardServiceRule.this.configuration = configuration; DropwizardServiceRule.this.environment = environment; super.runWithBundles(configuration, environment); } };
@Override public void initialize(Bootstrap<?> bootstrap) { bootstrap.getObjectMapperFactory().registerModule(new DefaultScalaModule()); }
@Override public void initialize(Bootstrap<SocialiteConfiguration> configBootstrap) { configBootstrap.setName("status-feed"); configBootstrap.addCommand( new LoadCommand() ); configBootstrap.addCommand( new OutputGraphCommand() ); configBootstrap.addCommand( new BenchmarkCommand() ); configBootstrap.addCommand( new TimelineRampFollowers() ); configBootstrap.addCommand( new SendRampFollowers() ); }
@Override @SuppressWarnings("unchecked") public void initialize(Bootstrap<MultiBitExchangeApiConfiguration> bootstrap) { bootstrap.setName("multibit-exchange"); // Configure Guice ConfiguredBundle guiceBundle = GuiceBundle .newBuilder() .addModule(new MultiBitExchangeApiServiceModule(loadConfigurationFromFile(args))) // The main Guice module with bindings .enableAutoConfig("org.multibit.exchange.infrastructure.adaptor.web.restapi") // Scan application classes .build(); bootstrap.addBundle(guiceBundle); // Add asset bundles bootstrap.addBundle(new AssetsBundle("/assets/app", "/app", "index.html")); bootstrap.addBundle(new AssetsBundle("/assets/css", "/css")); bootstrap.addBundle(new AssetsBundle("/assets/jquery", "/jquery")); bootstrap.addBundle(new AssetsBundle("/assets/js", "/js")); bootstrap.addBundle(new AssetsBundle("/assets/images", "/images")); // Add view bundle //bootstrap.addBundle(new ViewBundle()); }