com.yammer.dropwizard.config.Bootstrap.setName()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中com.yammer.dropwizard.config.Bootstrap.setName()方法的一些代码示例,展示了Bootstrap.setName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bootstrap.setName()方法的具体详情如下:
包路径:com.yammer.dropwizard.config.Bootstrap
类名称:Bootstrap
方法名:setName

Bootstrap.setName介绍

暂无

代码示例

代码示例来源:origin: bazaarvoice/jersey-hmac-auth

@Override
public void initialize(Bootstrap<Configuration> bootstrap) {
  bootstrap.setName("pizza-application");
}

代码示例来源:origin: mongodb-labs/hvdf

@Override
public void initialize(Bootstrap<HVDFConfiguration> configBootstrap) {
  configBootstrap.setName("hvdf");
  configBootstrap.addCommand( new ServerMonitoringSimulatorLoad() );
}

代码示例来源:origin: shekhargulati/day13-dropwizard-mongodb-demo-app

@Override
public void initialize(Bootstrap<Reader30Configuration> bootstrap) {
  bootstrap.setName("reader30");
  bootstrap.addBundle(new ViewBundle());
  bootstrap.addBundle(new AssetsBundle());
}

代码示例来源:origin: tzachz/github-comment-counter

@Override
public void initialize(Bootstrap<LeaderBoardServerConfiguration> bootstrap) {
  bootstrap.setName("Leaderboard-Server");
  bootstrap.addBundle(new ViewBundle());
  bootstrap.addBundle(new AssetsBundle("/assets/", "/"));
}

代码示例来源:origin: mongodb-labs/socialite

@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() );
}

代码示例来源:origin: zscott/MultiBitExchange

@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());
}

相关文章