本文整理汇总了Java中com.yammer.dropwizard.db.DatabaseConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java DatabaseConfiguration类的具体用法?Java DatabaseConfiguration怎么用?Java DatabaseConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DatabaseConfiguration类属于com.yammer.dropwizard.db包,在下文中一共展示了DatabaseConfiguration类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的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
示例2: initialize
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<PassbookConfiguration> bootstrap) {
bootstrap.addBundle(hibernate);
bootstrap.addBundle(new MigrationsBundle<PassbookConfiguration>() {
@Override
public DatabaseConfiguration getDatabaseConfiguration(PassbookConfiguration configuration) {
return configuration.getDatabaseConfiguration();
}
});
}
开发者ID:JanGorman,项目名称:jersey-passbook,代码行数:12,代码来源:PassbookService.java
示例3: getDatabaseConfiguration
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
@Override
public DatabaseConfiguration getDatabaseConfiguration(Config configuration) {
return configuration.getDatabase();
}
开发者ID:mley,项目名称:dwdemo,代码行数:5,代码来源:DropwizardDemo.java
示例4: getDatabaseConfiguration
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
@Override
public DatabaseConfiguration getDatabaseConfiguration(WLCDMServerConfiguration configuration) {
return configuration.getDatabaseConfiguration();
}
开发者ID:windbender,项目名称:wildlife-camera-machine,代码行数:5,代码来源:WLCDMServer.java
示例5: getDatabaseConfiguration
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
public DatabaseConfiguration getDatabaseConfiguration() {
return database;
}
开发者ID:windbender,项目名称:wildlife-camera-machine,代码行数:4,代码来源:WLCDMServerConfiguration.java
示例6: getDatabaseConfiguration
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
public DatabaseConfiguration getDatabaseConfiguration() {
return database;
}
开发者ID:JanGorman,项目名称:jersey-passbook,代码行数:4,代码来源:PassbookConfiguration.java
示例7: getDatabaseConfiguration
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
@Override
public DatabaseConfiguration getDatabaseConfiguration(final PassbookConfiguration configuration) {
return configuration.getDatabaseConfiguration();
}
开发者ID:JanGorman,项目名称:jersey-passbook,代码行数:5,代码来源:PassbookService.java
示例8: getDatabase
import com.yammer.dropwizard.db.DatabaseConfiguration; //导入依赖的package包/类
/**
* getter for database configuration.
*
* @return the database
*/
public DatabaseConfiguration getDatabase() {
return this.database;
}
开发者ID:kiswanij,项目名称:jk-drop-wizard-full-example,代码行数:9,代码来源:ExampleConfigurations.java
注:本文中的com.yammer.dropwizard.db.DatabaseConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论