use of org.nhindirect.dns.provider.ConfigServiceDNSStoreProvider in project nhin-d by DirectProject.
the class WSDNSServerConfig method getServerInjector.
/**
* {@inheritDoc}
*/
@Override
public Injector getServerInjector() {
LOGGER.info("Looking up DNS server configuration info from location " + configServiceLocation.toExternalForm());
Provider<DNSServerSettings> settingsProv = getServerSettings();
if (storeProvider == null)
storeProvider = new ConfigServiceDNSStoreProvider(configServiceLocation);
DNSServerModule module = DNSServerModule.create(storeProvider, settingsProv);
return Guice.createInjector(module);
}
Aggregations