01: // Copyright (c) 2005 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS.spi;
04:
05: import sun.net.spi.nameservice.*;
06:
07: /**
08: * The descriptor class for the dnsjava name service provider.
09: *
10: * @author Brian Wellington
11: * @author Paul Cowan (pwc21@yahoo.com)
12: */
13:
14: public class DNSJavaNameServiceDescriptor implements
15: NameServiceDescriptor {
16:
17: private static NameService nameService;
18:
19: static {
20: nameService = new DNSJavaNameService();
21: }
22:
23: /**
24: * Returns a reference to a dnsjava name server provider.
25: */
26: public NameService createNameService() {
27: return nameService;
28: }
29:
30: public String getType() {
31: return "dns";
32: }
33:
34: public String getProviderName() {
35: return "dnsjava";
36: }
37:
38: }
|