Search in sources :

Example 1 with DNSServerModule

use of org.nhindirect.dns.module.DNSServerModule 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);
}
Also used : ConfigServiceDNSStoreProvider(org.nhindirect.dns.provider.ConfigServiceDNSStoreProvider) DNSServerSettings(org.nhindirect.dns.DNSServerSettings) DNSServerModule(org.nhindirect.dns.module.DNSServerModule)

Aggregations

DNSServerSettings (org.nhindirect.dns.DNSServerSettings)1 DNSServerModule (org.nhindirect.dns.module.DNSServerModule)1 ConfigServiceDNSStoreProvider (org.nhindirect.dns.provider.ConfigServiceDNSStoreProvider)1