本文整理汇总了Java中com.yammer.dropwizard.views.ViewBundle类的典型用法代码示例。如果您正苦于以下问题:Java ViewBundle类的具体用法?Java ViewBundle怎么用?Java ViewBundle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewBundle类属于com.yammer.dropwizard.views包,在下文中一共展示了ViewBundle类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import com.yammer.dropwizard.views.ViewBundle; //导入依赖的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.views.ViewBundle; //导入依赖的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
示例3: initialize
import com.yammer.dropwizard.views.ViewBundle; //导入依赖的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
示例4: initialize
import com.yammer.dropwizard.views.ViewBundle; //导入依赖的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
示例5: initialize
import com.yammer.dropwizard.views.ViewBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<DashboardConfiguration> bootstrap) {
bootstrap.setName("dashboard");
bootstrap.addBundle(new ViewBundle());
}
开发者ID:youhavethewrong,项目名称:git-dashboard,代码行数:6,代码来源:DashboardService.java
示例6: initialize
import com.yammer.dropwizard.views.ViewBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<TelemetryConfiguration> bootstrap) {
bootstrap.addBundle(new ViewBundle());
}
开发者ID:ryankennedy,项目名称:telemetry,代码行数:5,代码来源:TelemetryService.java
注:本文中的com.yammer.dropwizard.views.ViewBundle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论