[jboss-dev-forums] [Embedded JBoss Development] - Re: ShrinkWrap - Descriptors

epbernard do-not-reply at jboss.com
Mon Sep 28 09:16:38 EDT 2009


Another remark is that you can't compose multiple time 
(also I dont' understand why you have so many classes liek descriptor container, asserts etc)

Could not you have something like

Archive archive = ...;
  | WebArchive webArchive = 
  | archive.specializes(WebArchive.class)
  |              .setDisplayName("test-app")
  |              .addContextParameter("test", "yes")
  |              .addServlet(this.getClass(), "*.jsp")
  |              .addClass(IOUtil.class)
  |              .addListener(ZipOutputStream.class)
  |              .addFilter(ZipExporter.class, "*")
  |              .addLibrary("org/jboss/shrinkwrap/impl/base/importer/test.zip");
  |           .specializes(PersistenceArchive.class)
  |               .setPersistenceProvider(HibernatePersistence.class);

A PersistenceArchive received the archive as a param and can build upon the basic APIs like addInputStreamAsFile etc)




View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257362#4257362

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257362



More information about the jboss-dev-forums mailing list