It would be nice to have a Java API which is both inherently safe to use and remains stable. The work that has gone into refactoring the XML:DB, XML-RPC and RESTServer APIs has a greater purpose, which is to be refactored into a Java 8 lambda based API for eXist, let's call it JAPI for the moment (better names welcome).
JAPI would sit between eXist core and any interaction with 3rd party Java code, it effectively wraps DBBroker, Txn, DocumentImpl, Resource and XQuery. Much of the work is already done, it just needs to be further abstracted and the existing external APIs refactored to use it.
It's goals are to provide ARM (Automatic Resource Management), lock-safety and reduce the proliferation of copy-pasta.
It would be nice to have a Java API which is both inherently safe to use and remains stable. The work that has gone into refactoring the XML:DB, XML-RPC and RESTServer APIs has a greater purpose, which is to be refactored into a Java 8 lambda based API for eXist, let's call it
JAPIfor the moment (better names welcome).JAPI would sit between eXist core and any interaction with 3rd party Java code, it effectively wraps DBBroker, Txn, DocumentImpl, Resource and XQuery. Much of the work is already done, it just needs to be further abstracted and the existing external APIs refactored to use it.
It's goals are to provide ARM (Automatic Resource Management), lock-safety and reduce the proliferation of copy-pasta.