com.buzzsurf.dns
Class DNSJavaNameServiceDescriptor

java.lang.Object
  |
  +--com.buzzsurf.dns.DNSJavaNameServiceDescriptor
All Implemented Interfaces:
sun.net.spi.nameservice.NameServiceDescriptor

public class DNSJavaNameServiceDescriptor
extends java.lang.Object
implements sun.net.spi.nameservice.NameServiceDescriptor

Constructs the DNSJavaNameService and returns references to it.

This class assigns the name of this name service provider, which is "dns,dnsjava".

This class also reads the system property "dnsjava.verbose". If set to "true", DNSJavaNameServiceDescriptor and DNSJavaNameService will print debugging information to stdout, which is usefully to verify the name service provider is actually being used.

Version:
0.9
Author:
Paul Cowan (pwc21@yahoo.com)

Constructor Summary
DNSJavaNameServiceDescriptor()
           
 
Method Summary
 sun.net.spi.nameservice.NameService createNameService()
          This doesn't actually create a name service provider, it returns a reference to the one that was already created as class load time.
 java.lang.String getProviderName()
           
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSJavaNameServiceDescriptor

public DNSJavaNameServiceDescriptor()
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface sun.net.spi.nameservice.NameServiceDescriptor
Returns:
The string "dns"

getProviderName

public java.lang.String getProviderName()
Specified by:
getProviderName in interface sun.net.spi.nameservice.NameServiceDescriptor
Returns:
The string "dnsjava"

createNameService

public sun.net.spi.nameservice.NameService createNameService()
This doesn't actually create a name service provider, it returns a reference to the one that was already created as class load time.

Specified by:
createNameService in interface sun.net.spi.nameservice.NameServiceDescriptor
Returns:
The dnsjava name service provider