public class DNSServerFactory extends Object
| Constructor and Description |
|---|
DNSServerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DNSServer |
createDNSServer(URL configLocation)
Creates an instance of a
DNSServer using the configuration information stored at the configuration location. |
static DNSServer |
createDNSServer(URL configLocation,
com.google.inject.Provider<DNSStore> dnsStore,
com.google.inject.Provider<DNSServerSettings> settings)
Creates an instance of a
DNSServer using the configuration information stored at the configuration location. |
public static DNSServer createDNSServer(URL configLocation) throws DNSException
DNSServer using the configuration information stored at the configuration location.configLocation - The URL of the configuration information. The URL may refer to any addressable resource.DNSException - Thrown if an error occurs while creating the DNSServer.public static DNSServer createDNSServer(URL configLocation, com.google.inject.Provider<DNSStore> dnsStore, com.google.inject.Provider<DNSServerSettings> settings) throws DNSException
DNSServer using the configuration information stored at the configuration location. An
optional {@link DNSStore> provider can be passed for initializing the server with a specific record store.configLocation - The URL of the configuration information. The URL may refer to any addressable resource.dnsStore - Optional provider that will create an instance of a specific DNSStore type. If this is null, the
system will create a default store.settings - Optional DNS server settings. Overridden by settings from the configuration service.DNSException - Thrown if an error occurs while creating the DNSServer.Copyright © 2010-2015 The Direct Project. All Rights Reserved.