All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xbill.DNS.spi.DNSJavaNameServiceDescriptor Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2005 Brian Wellington ([email protected])

package org.xbill.DNS.spi;

import sun.net.spi.nameservice.NameService;
import sun.net.spi.nameservice.NameServiceDescriptor;

import java.lang.reflect.Proxy;

/**
 * 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 {
	nameService = (NameService) Proxy.newProxyInstance(NameService.class.getClassLoader(),
			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