当前位置: 首页>>代码示例>>Java>>正文


Java DBIExceptionsBundle类代码示例

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


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

示例1: initialize

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<PublicAuthConfiguration> bootstrap) {
    bootstrap.setConfigurationSourceProvider(
            new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),
                    new EnvironmentVariableSubstitutor(false)
            )
    );

    bootstrap.addBundle(new DBIExceptionsBundle());

    bootstrap.addBundle(new MigrationsBundle<PublicAuthConfiguration>() {
        @Override
        public DataSourceFactory getDataSourceFactory(PublicAuthConfiguration configuration) {
            return configuration.getDataSourceFactory();
        }
    });

    bootstrap.addCommand(new DependentResourceWaitCommand());
}
 
开发者ID:alphagov,项目名称:pay-publicauth,代码行数:20,代码来源:PublicAuthApp.java

示例2: initialize

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<SkidRoadDropwizardExampleConfiguration> bootstrap) {

    ObjectMapper om = bootstrap.getObjectMapper();
    om.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
    om.registerModule(new JodaModule());
    om.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES);

    bootstrap.addBundle(new DBIExceptionsBundle());
    bootstrap.addBundle(new MigrationsBundle<SkidRoadDropwizardExampleConfiguration>() {
        @Override
        public DataSourceFactory getDataSourceFactory(SkidRoadDropwizardExampleConfiguration configuration) {
            return configuration.getSkidRoad().getDatabaseConfiguration();
        }
    });
    bootstrap.addCommand(new GenerateRandomKey());
}
 
开发者ID:Multifarious,项目名称:skid-road,代码行数:18,代码来源:SkidRoadDropwizardExampleService.java

示例3: initialize

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<BiblioConfiguration> bootstrap) {
    bootstrap.addBundle(new TemplateConfigBundle());
    bootstrap.addBundle(hibernate);
    bootstrap.addBundle(flyway);
    bootstrap.addBundle(new DBIExceptionsBundle());
    bootstrap.addBundle(new DBMigrationsBundle());
}
 
开发者ID:adelolmo,项目名称:biblio-server,代码行数:9,代码来源:BiblioApplication.java

示例4: initializeService

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initializeService(final Bootstrap<FeatureJdbiConfiguration> bootstrap) {
    bootstrap.addBundle(new DBIExceptionsBundle());
    bootstrap.setConfigurationSourceProvider(
            new SubstitutingSourceProvider(
                    bootstrap.getConfigurationSourceProvider(),
                    new EnvironmentVariableSubstitutor()));
}
 
开发者ID:nmdp-bioinformatics,项目名称:service-feature,代码行数:9,代码来源:FeatureJdbiApplication.java

示例5: initialize

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<ThmmyRssConfiguration> bootstrap) {
    bootstrap.addCommand(new RecreateTableCommand(this, "recreatetable", "Recreate the database table."));
    bootstrap.addCommand(new UpdateAnnouncementsCommand(this, "updatedb", "Update the announcement database"));
    bootstrap.addBundle(new DBIExceptionsBundle());
    bootstrap.addBundle(new AssetsBundle("/assets/", "/assets"));
    bootstrap.addBundle(new ViewBundle<>());
}
 
开发者ID:spapageo,项目名称:ethmmyrss,代码行数:9,代码来源:ThmmyRssApplication.java

示例6: initializeService

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initializeService(final Bootstrap<HmlJdbiConfiguration> bootstrap) {
    bootstrap.addBundle(new DBIExceptionsBundle());
}
 
开发者ID:nmdp-bioinformatics,项目名称:service-hml,代码行数:5,代码来源:HmlJdbiApplication.java

示例7: initialize

import io.dropwizard.jdbi.bundles.DBIExceptionsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<ApiConfig> bootstrap) {
  /** Configure bundles */
  bootstrap.addBundle(new DBIExceptionsBundle());
}
 
开发者ID:openstack,项目名称:monasca-api,代码行数:6,代码来源:MonApiApplication.java


注:本文中的io.dropwizard.jdbi.bundles.DBIExceptionsBundle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。