use of com.netflix.titus.federation.service.ServiceModule in project titus-control-plane by Netflix.
the class TitusFederationModule method configure.
@Override
protected void configure() {
bind(Archaius2ConfigurationLogger.class).asEagerSingleton();
bind(Registry.class).toInstance(new DefaultRegistry());
bind(SystemLogService.class).to(LoggingSystemLogService.class);
bind(SystemAbortListener.class).to(LoggingSystemAbortListener.class);
install(new GovernatorJerseySupportModule());
install(new ContainerEventBusModule());
install(new TitusEntitySanitizerModule());
bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
bind(CellConnector.class).to(DefaultCellConnector.class);
bind(RemoteFederationConnector.class).to(DefaultRemoteFederationConnector.class);
bind(CellWebClientConnector.class).to(DefaultCellWebClientConnector.class);
bind(WebClientFactory.class).toInstance(SimpleWebClientFactory.getInstance());
bind(CellInfoResolver.class).to(DefaultCellInfoResolver.class);
bind(RemoteFederationInfoResolver.class).to(DefaultRemoteFederationInfoResolver.class);
install(new FederationEndpointModule());
install(new ServiceModule());
}
Aggregations