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