From: Brian W. <bwe...@xb...> - 2011-10-12 19:09:26
|
On Oct 12, 2011, at 11:49 AM, Lucas Ferreira wrote: > Hello, > > I am working on a project based on dnsjava (actually, I am trying to > extend Eagle DNS) and need to publish a zone which is too big too fit > in memory, so I need to extend the Zone class. > > While woking on this, I am having problems because the Zone > findRecords method must return a SetResponse object. Unfortunately, > the SetResponse constructors and set methods are only available inside > the org.xbill.DNS package, which makes it impossible to extend the > Zone class without altering the dnsjava jar file. > > So, I have a couple of questions/suggestions: > > 1. Is it possible to make dnsjava more extensible by providing Zone as > an interface, so users may provide their own Zone implementations? It's certainly possible, but it would break backwards compatibility, which is a bad thing. > 2. Is it possible to make the SetResponsible constructors and setters > available to external classes? Possibly, but the external API would need some cleaning up first. Brian |