[getdns-api] Java language bindings
Wiley, Glen
gwiley at verisign.com
Tue Sep 10 21:14:21 CEST 2013
As we continue our work on the getdns API implementation the question of what the Java language bindings would look like came up. It doesn't look as though Java appeared in any postings to the list yet so I'd like to offer a few thoughts (paraphrased from notes from previous discussion with Neel Goyal and Allison Mankin)
Java developers are used to different idioms than the typical C developer so it might not make sense to implement a Java version of the API using exactly the same semantics as the C version. We might want a more OO approach to the Java implementation, for example we might handle context this way:
Assuming the package com.verisign.getdns:
getdns_context_create becomes:
// DnsContext class or DnsContextFactory class
static DnsContext create(boolean setFromOs);
We are thinking that the implementation would likely be done in Java (rather than exposing the C implementation via JNI for example).
--
Glen Wiley
KK4SFV
Sr. Engineer
The Hive, Verisign, Inc.
"This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law or may be constituted as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this message in error, notify sender immediately and delete this message immediately."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://getdnsapi.net/pipermail/spec/attachments/20130910/23087263/attachment.html>
-------------- next part --------------
_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org
More information about the spec
mailing list