public class DNSServerModule
extends com.google.inject.AbstractModule
DNSServer instances. Allows configuration either using just a URL to
a configuration service, or more advanced options by using providers.| Modifier and Type | Method and Description |
|---|---|
static DNSServerModule |
create(com.google.inject.Provider<DNSStore> dnsStore)
Creates a module using a specific
DNSStore provider and default server settings. |
static DNSServerModule |
create(com.google.inject.Provider<DNSStore> dnsStore,
com.google.inject.Provider<DNSServerSettings> settings)
Creates a module using specific
DNSStore and DNSServerSettings providers |
static DNSServerModule |
create(URL configServiceURL)
Creates a module using just a configuration URL.
|
public static DNSServerModule create(URL configServiceURL)
configServiceURL - A URL that provides the location to the configuration service.public static DNSServerModule create(com.google.inject.Provider<DNSStore> dnsStore)
DNSStore provider and default server settings.dnsStore - A provider used to create instances of the DNSStore.public static DNSServerModule create(com.google.inject.Provider<DNSStore> dnsStore, com.google.inject.Provider<DNSServerSettings> settings)
DNSStore and DNSServerSettings providersdnsStore - A provider used to create instances of the DNSStore.settings - A provider used to create instances of the DNSServerSettings.Copyright © 2010-2015 The Direct Project. All Rights Reserved.