org.xbill.DNS.spi.DNSJavaNameServiceDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddns-dnsjava Show documentation
Show all versions of ddns-dnsjava Show documentation
DiscoveryDNS fork of DNSJava project
// Copyright (c) 2005 Brian Wellington ([email protected])
package org.xbill.DNS.spi;
import java.lang.reflect.Proxy;
import sun.net.spi.nameservice.*;
/**
* The descriptor class for the dnsjava name service provider.
*
* @author Brian Wellington
* @author Paul Cowan ([email protected])
*/
public class DNSJavaNameServiceDescriptor implements NameServiceDescriptor {
private static NameService nameService;
static {
ClassLoader loader = NameService.class.getClassLoader();
nameService = (NameService) Proxy.newProxyInstance(loader,
new Class[] { NameService.class },
new DNSJavaNameService());
}
/**
* Returns a reference to a dnsjava name server provider.
*/
public NameService
createNameService() {
return nameService;
}
public String
getType() {
return "dns";
}
public String
getProviderName() {
return "dnsjava";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy