[jboss-dev] Announcing the ShrinkWrap Project

Andrew Lee Rubinger andrew.rubinger at redhat.com
Thu Sep 17 18:58:19 EDT 2009

JBoss Embedded and the JSR-299 Test Harness both have requirements for 
representing archives, collections of Classes and resources, in an 
object model.  We've taken some ideas initially put forth by Bill and 
Adrian and reworked them into a standalone project with *no* outside 
dependencies, called "ShrinkWrap".



// Make a name for the JAR
String name = "slsb.jar";
// Create and add classes to the JAR
JavaArchive archive = JavaArchiveFactory.create(name).
   addClasses(OutputBean.class, OutputLocalBusiness.class);
// Get a stream so we can serialize to disk as a JAR
InputStream in = ZipExporter.exportZip(archive);
// Or deploy directly to Embedded AS

This project in particular has had a lot of community support (I'd 
estimate 50% of the code and tests currently in place, as well as many 
design ideas).  Aslak Knutsen and John Bailey are the contributors, and 
can typically be found on IRC Freenode #jboss-dev.


Andrew Lee Rubinger
Sr. Software Engineer
JBoss by Red Hat

More information about the jboss-development mailing list