use of uk.gov.ida.hub.shared.guice.GuiceBundle in project verify-hub by alphagov.
the class StubEventSinkApplication method initialize.
@Override
public final void initialize(Bootstrap<StubEventSinkConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
GuiceBundle<StubEventSinkConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(), StubEventSinkConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
}
use of uk.gov.ida.hub.shared.guice.GuiceBundle in project verify-hub by alphagov.
the class PolicyApplication method initialize.
@Override
public final void initialize(Bootstrap<PolicyConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
GuiceBundle<PolicyConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(getPolicyModule(), new EventEmitterModule()), PolicyConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
bootstrap.addBundle(new PrometheusBundle());
bootstrap.addBundle(new IdaJsonProcessingExceptionMapperBundle());
}
use of uk.gov.ida.hub.shared.guice.GuiceBundle in project verify-hub by alphagov.
the class SamlEngineApplication method initialize.
@Override
public final void initialize(Bootstrap<SamlEngineConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
MDC.clear();
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
bootstrap.addBundle(verifyMetadataBundle);
GuiceBundle<SamlEngineConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(new SamlEngineModule(), new CryptoModule(), bindMetadata()), SamlEngineConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new PrometheusBundle());
}
use of uk.gov.ida.hub.shared.guice.GuiceBundle in project verify-hub by alphagov.
the class ConfigApplication method initialize.
@Override
public void initialize(Bootstrap<ConfigConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
GuiceBundle<ConfigConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(new ConfigModule(), bindS3ConfigSource()), ConfigConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
bootstrap.addBundle(new PrometheusBundle());
bootstrap.addCommand(new ConfigValidCommand());
}
use of uk.gov.ida.hub.shared.guice.GuiceBundle in project verify-hub by alphagov.
the class SamlSoapProxyApplication method initialize.
@Override
public final void initialize(Bootstrap<SamlSoapProxyConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
bootstrap.addBundle(verifyMetadataBundle);
GuiceBundle<SamlSoapProxyConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(new SamlSoapProxyModule(), new EventEmitterModule(), bindVerifyMetadata()), SamlSoapProxyConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
bootstrap.addBundle(new PrometheusBundle());
}
Aggregations