本文整理汇总了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);
}
示例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();
}
});
}
示例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/"));
}
示例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()
);
}
示例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);
}
}
示例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);
}
示例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/"));
}
示例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);
}
示例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");
}
示例10: initialize
import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<SampleConfiguration> bootstrap) {
overrideLogging();
bootstrap.setName("cukes-rest-sample-app");
}
示例11: initialize
import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<Configuration> bootstrap) {
bootstrap.setName("pizza-application");
}
示例12: initialize
import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<HVDFConfiguration> configBootstrap) {
configBootstrap.setName("hvdf");
configBootstrap.addCommand( new ServerMonitoringSimulatorLoad() );
}
示例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());
}
示例14: initialize
import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<GreenfieldConfiguration> bootstrap) {
bootstrap.setName("green");
bootstrap.addBundle(new AssetsBundle("/static/", "/"));
}
示例15: initialize
import com.yammer.dropwizard.config.Bootstrap; //导入方法依赖的package包/类
@Override
public void initialize(Bootstrap<Config> bootstrap) {
bootstrap.setName("app");
}