org.nhindirect.dns.module
Class DNSServerConfigModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.nhindirect.dns.module.DNSServerConfigModule
All Implemented Interfaces:
com.google.inject.Module

public class DNSServerConfigModule
extends com.google.inject.AbstractModule

Guice module for generating a configuration provider based on the URL protocol.

Since:
1.0
Author:
Greg Meyer

Method Summary
static DNSServerConfigModule create(URL configLocation, com.google.inject.Provider<DNSStore> storeProvider, com.google.inject.Provider<DNSServerSettings> settings)
          Creates a DNSServerConfigModule that is used by a Guice to create a DNSServerConfig object.
 
Methods inherited from class com.google.inject.AbstractModule
configure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DNSServerConfigModule create(URL configLocation,
                                           com.google.inject.Provider<DNSStore> storeProvider,
                                           com.google.inject.Provider<DNSServerSettings> settings)
Creates a DNSServerConfigModule that is used by a Guice to create a DNSServerConfig object. The DNSServerConfig object is subsequently used to create DNSServer objects.

Parameters:
configLocation - The URL that the DNSServerConfig will use to lookup configuration information.
storeProvider - An optional DNSStore provider that will create instances of DNSStore objects.
settings - Optional DNS server settings. Overridden by settings from the configuration service.
Returns:
A configured Guice module used for create DNSServerConfig objects.


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