use of uk.gov.pay.ledger.healthcheck.DependentResourceWaitCommand in project pay-ledger by alphagov.
the class LedgerApp method initialize.
@Override
public void initialize(Bootstrap<LedgerConfig> bootstrap) {
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
bootstrap.addBundle(new MigrationsBundle<>() {
@Override
public DataSourceFactory getDataSourceFactory(LedgerConfig configuration) {
return configuration.getDataSourceFactory();
}
});
bootstrap.addBundle(new JdbiExceptionsBundle());
bootstrap.addCommand(new DependentResourceWaitCommand());
bootstrap.getObjectMapper().getSubtypeResolver().registerSubtypes(LogstashConsoleAppenderFactory.class);
bootstrap.getObjectMapper().getSubtypeResolver().registerSubtypes(GovUkPayDropwizardRequestJsonLogLayoutFactory.class);
}
Aggregations