use of uk.gov.ida.eventemitter.EventEmitterModule 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.eventemitter.EventEmitterModule 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());
}
use of uk.gov.ida.eventemitter.EventEmitterModule in project verify-hub by alphagov.
the class SamlProxyApplication method initialize.
@Override
public final void initialize(Bootstrap<SamlProxyConfiguration> bootstrap) {
// Enable variable substitution with environment variables
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
GuiceBundle<SamlProxyConfiguration> guiceBundle = new GuiceBundle<>(() -> asList(new SamlProxyModule(), new EventEmitterModule()), SamlProxyConfiguration.class);
bootstrap.addBundle(guiceBundle);
bootstrap.addBundle(new ServiceStatusBundle());
bootstrap.addBundle(new MonitoringBundle());
bootstrap.addBundle(new LoggingBundle());
bootstrap.addBundle(new PrometheusBundle());
}
Aggregations