W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2010

Re: Java API for Calabash

From: Cranford, Jonathan W. <jcranford@mitre.org>
Date: Mon, 13 Sep 2010 11:34:37 -0400
To: Dave <dhallammail-xproc@yahoo.com>, "xproc-dev@w3.org" <xproc-dev@w3.org>
CC: Norman Walsh <ndw@nwalsh.com>
Message-ID: <85F9FA66366C9E429DD247D19E3480E207C2D2C776@IMCMBX2.MITRE.ORG>
All,

With apologies for resurrecting an old thread, the approach that Dave highlights below is exactly the approach that I took.

I recently obtained permission from my company to donate my efforts under the same GPL+CDDL license as the rest of Calabash, so I’m sending it out to the list for the benefit of anyone else facing a similar need.

* com.xmlcalabash.api.Facade implements a Façade pattern in front of key Calabash classes.  The intent is to simply the interface to Calabash without decreasing the flexibility available to the programmer.  

* com.xmlcalabash.util.ErrorMessageRegistry is a utility class that reads error messages from a configuration file already in the calabash distribution.

* FacadeDriver is test code simply meant to demonstrate a working example of using the Facade class.

The package names are only notional at this point; they can be moved to a different package with ease.  The only dependency is between Facade and ErrorMessageRegistry.

Norm, I’d be glad to assist in any additional prep work needed to integrate these two classes into the calabash code base.

With best regards,

Jonathan Cranford
The MITRE Corporation


----------------
From: Dave [mailto:dhallammail-xproc@yahoo.com] 
Sent: Wednesday, June 09, 2010 5:30 PM
To: xproc-dev@w3.org
Subject: 

Hi all,

I've seen a number of postings from mid-2009 talking about a Java API for Calabash and the end solution was to strip code from com.xmlcalabash.drivers.Main to add to their own applications so that Calabash can be invoked from within an application. 

Is there a different approach that people are taking now or does that solution still stand?

Many thanks,

Dave






Received on Monday, 13 September 2010 21:33:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 13 September 2010 21:33:23 GMT