use of uk.gov.ida.hub.shared.guice.GuiceBundle 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