org.nhindirect.dns.config
Class WSDNSServerConfig

java.lang.Object
  extended by org.nhindirect.dns.config.WSDNSServerConfig
All Implemented Interfaces:
DNSServerConfig

public class WSDNSServerConfig
extends Object
implements DNSServerConfig

Loads DNS server configuration settings from the configuration service to create the injector.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
WSDNSServerConfig(URL configServiceLocation, com.google.inject.Provider<DNSStore> storeProvider, com.google.inject.Provider<DNSServerSettings> settings)
          Construct and configuration component with the location of the configuration file and an optional provider for creating instances of the DNSServer.
 
Method Summary
 com.google.inject.Injector getServerInjector()
          Gets a Guide Injector that can be used to create DNSServer objects based on configuration information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDNSServerConfig

public WSDNSServerConfig(URL configServiceLocation,
                         com.google.inject.Provider<DNSStore> storeProvider,
                         com.google.inject.Provider<DNSServerSettings> settings)
Construct and configuration component with the location of the configuration file and an optional provider for creating instances of the DNSServer.

Parameters:
configFile - The full path of the XML configuration file.
storeProvider - An option provider used for creating instances of the DNSStore. If the provider is null, a default provider is used.
Method Detail

getServerInjector

public com.google.inject.Injector getServerInjector()
Gets a Guide Injector that can be used to create DNSServer objects based on configuration information.

Specified by:
getServerInjector in interface DNSServerConfig
Returns:
A Guide Injector that can be used to create DNSServer objects.


Copyright © 2010-2015 The Direct Project. All Rights Reserved.