public class DiscoveryModule extends Object implements com.google.inject.Module
| Constructor and Description |
|---|
DiscoveryModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.google.inject.Binder binder) |
MergingServiceSelectorFactory |
createMergingServiceSelectorFactory(CachingServiceSelectorFactory factory,
Announcer announcer,
NodeInfo nodeInfo) |
Supplier<URI> |
getDiscoveryUriSupplier(ServiceInventory serviceInventory,
DiscoveryClientConfig config) |
public void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Module@Provides public Supplier<URI> getDiscoveryUriSupplier(ServiceInventory serviceInventory, DiscoveryClientConfig config)
@Provides @Singleton public MergingServiceSelectorFactory createMergingServiceSelectorFactory(CachingServiceSelectorFactory factory, Announcer announcer, NodeInfo nodeInfo)
Copyright © 2010–2020 Airlift. All rights reserved.