• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ConfiguredAssetsBundle类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle的典型用法代码示例。如果您正苦于以下问题:Java ConfiguredAssetsBundle类的具体用法?Java ConfiguredAssetsBundle怎么用?Java ConfiguredAssetsBundle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ConfiguredAssetsBundle类属于com.bazaarvoice.dropwizard.assets包,在下文中一共展示了ConfiguredAssetsBundle类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initialize

点赞 3

import com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<AppConfiguration> bootstrap) {
    MigrationsBundle<AppConfiguration> migrationBundle = new MigrationsBundle<AppConfiguration>() {
        @Override
        public DataSourceFactory getDataSourceFactory(AppConfiguration configuration) {
            return configuration.getDataSourceFactory();
        }
    };

    // allow using Environment variable in yaml
    bootstrap.setConfigurationSourceProvider(
            new SubstitutingSourceProvider(
                    bootstrap.getConfigurationSourceProvider(),
                    new EnvironmentVariableSubstitutor(false)
            )
    );

    bootstrap.addBundle(migrationBundle);
    bootstrap.addBundle(hibernate);
    bootstrap.addBundle(new ConfiguredAssetsBundle("/app", "/app", "index.html"));
}
 

开发者ID:paukiatwee,
项目名称:budgetapp,
代码行数:22,
代码来源:BudgetApplication.java

示例2: initialize

点赞 2

import com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle; //导入依赖的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

点赞 2

import com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle; //导入依赖的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

点赞 2

import com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle; //导入依赖的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

点赞 2

import com.bazaarvoice.dropwizard.assets.ConfiguredAssetsBundle; //导入依赖的package包/类
@Override
public void initialize(final Bootstrap<HesperidesConfiguration> hesperidesConfigurationBootstrap) {
    hesperidesConfigurationBootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/", "index.html"));
}
 

开发者ID:voyages-sncf-technologies,
项目名称:hesperides,
代码行数:5,
代码来源:MainApplication.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)