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