当前位置: 首页>>代码示例>>Java>>正文


Java Bootstrap.setName方法代码示例

本文整理汇总了Java中com.yammer.dropwizard.config.Bootstrap.setName方法的典型用法代码示例。如果您正苦于以下问题:Java Bootstrap.setName方法的具体用法?Java Bootstrap.setName怎么用?Java Bootstrap.setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.yammer.dropwizard.config.Bootstrap的用法示例。


在下文中一共展示了Bootstrap.setName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(final Bootstrap<Config> bootstrap) {
    bootstrap.setName("DropwizardDemo server");

    // serve all files in src/main/resources/webroot on /
    bootstrap.addBundle(new AssetsBundle("/webroot/", "/"));

    // ViewBundle for BookViews templating
    bootstrap.addBundle(new ViewBundle());

    bootstrap.addBundle(hibernate);
}
 
开发者ID:mley,项目名称:dwdemo,代码行数:13,代码来源:DropwizardDemo.java

示例2: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<WLCDMServerConfiguration> bootstrap) {
	bootstrap.setName("wlcdm");
    //bootstrap.addBundle(new AssetsBundle("/assets", "/"));
       bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/"));

       bootstrap.addBundle(hibernate);

       bootstrap.addBundle(new MigrationsBundle<WLCDMServerConfiguration>() {
           @Override
           public DatabaseConfiguration getDatabaseConfiguration(WLCDMServerConfiguration configuration) {
               return configuration.getDatabaseConfiguration();
           }
       });
   }
 
开发者ID:windbender,项目名称:wildlife-camera-machine,代码行数:16,代码来源:WLCDMServer.java

示例3: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<ServiceConfiguration> bootstrap) {
	bootstrap.setName("zoopeeker");
	
	bootstrap.addBundle(new ViewBundle());
	bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/assets/"));
}
 
开发者ID:kiblerdude,项目名称:zoopeeker,代码行数:8,代码来源:ZooPeekerService.java

示例4: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<SimulatorConfiguration> bootstrap) {
	bootstrap.setName("TR069-Simulator");
	bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/dashboard/") );
	bootstrap.addBundle(new ViewBundle());
	bootstrap.addBundle(GuiceBundle.newBuilder()
			.addModule(new SimulatorModule())
			.enableAutoConfig(getClass().getPackage().getName())
			.build()
			);


}
 
开发者ID:paraam,项目名称:tr069-simulator,代码行数:14,代码来源:SimulatorService.java

示例5: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public final void initialize(final Bootstrap<KijiRESTConfiguration> bootstrap) {
  bootstrap.setName("kiji-rest");

  // Initialize plugins.
  for (KijiRestPlugin plugin : Lookups.get(KijiRestPlugin.class)) {
    LOG.info("Initializing plugin {}", plugin.getClass());
    plugin.initialize(bootstrap);
  }
}
 
开发者ID:kijiproject,项目名称:kiji-rest,代码行数:12,代码来源:KijiRESTService.java

示例6: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<TeamsServiceConfiguration> bootstrap) {
	bootstrap.setName("dropwizard-jedis-example");
	bootstrap.addBundle(new AssetsBundle("/assets/", "/"));
	bootstrap.addBundle(new ViewBundle());
	bootstrap.addBundle(jedisBundle);
}
 
开发者ID:anastasop,项目名称:dropwizard-jedis,代码行数:8,代码来源:TeamsService.java

示例7: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<MyAppConfiguration> bootstrap) {
    bootstrap.setName("my-app-service");
    bootstrap.getObjectMapperFactory().setSerializationInclusion(JsonInclude.Include.NON_NULL);

    //serve some HTML resources
    bootstrap.addBundle(new AssetsBundle("/assets/", "/myapp/"));
}
 
开发者ID:jacek99,项目名称:dropwizard-spring-di-security-onejar-example,代码行数:9,代码来源:MyAppService.java

示例8: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<ExampleConfiguration> bootstrap) {
    bootstrap.setName("example");

    final SLF4JSpanSink loggingSink = new SLF4JSpanSink();
    final TelemetryServiceSpanSink serviceSink = new TelemetryServiceSpanSink();

    SpanSinkRegistry.register(loggingSink);
    SpanSinkRegistry.register(serviceSink);
}
 
开发者ID:ryankennedy,项目名称:telemetry,代码行数:11,代码来源:ExampleService.java

示例9: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
/**
 * Configures aspects of the application required before the
 * application is run.
 */
@Override
public void initialize(Bootstrap<DataConfiguration> bootstrap) {
  bootstrap.setName("Lens Service");
}
 
开发者ID:boozallen,项目名称:cognition,代码行数:9,代码来源:DataService.java

示例10: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<SampleConfiguration> bootstrap) {
    overrideLogging();
    bootstrap.setName("cukes-rest-sample-app");
}
 
开发者ID:ctco,项目名称:cukes,代码行数:6,代码来源:SampleApplication.java

示例11: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<Configuration> bootstrap) {
    bootstrap.setName("pizza-application");
}
 
开发者ID:bazaarvoice,项目名称:jersey-hmac-auth,代码行数:5,代码来源:PizzaService.java

示例12: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<HVDFConfiguration> configBootstrap) {
    configBootstrap.setName("hvdf");
    configBootstrap.addCommand( new ServerMonitoringSimulatorLoad() );

}
 
开发者ID:mongodb-labs,项目名称:hvdf,代码行数:7,代码来源:HVDFService.java

示例13: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<FoxtrotServerConfiguration> bootstrap) {
    bootstrap.setName("foxtrot");
    bootstrap.addBundle(new AssetsBundle("/console/", "/"));
    bootstrap.addCommand(new InitializerCommand());
}
 
开发者ID:Flipkart,项目名称:foxtrot,代码行数:7,代码来源:FoxtrotServer.java

示例14: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<GreenfieldConfiguration> bootstrap) {
    bootstrap.setName("green");
    bootstrap.addBundle(new AssetsBundle("/static/", "/"));
}
 
开发者ID:dev9com,项目名称:greenfield,代码行数:6,代码来源:GreenfieldService.java

示例15: initialize

import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<Config> bootstrap) {
    bootstrap.setName("app");
}
 
开发者ID:cscotta,项目名称:deschutes,代码行数:5,代码来源:App.java


注:本文中的com.yammer.dropwizard.config.Bootstrap.setName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。