I played around with how we could impl descriptors into the archives last night..
Basicly;
- a WebArchiveDescriptor IF with methods like addFilter, addServlet etc.
- a JAXB based WebArchiveDescriptorAsset that handles the web.xml struct.
- the WebContainer extends WebArchiveDescriptor
- the WebArchiveDescriptorAsset is added to path WEB-INF/web.xml in the constructor of
WebContainerBase.
- WebContainerBase impls WebArchiveDescriptor as a 'double' delegate, delegate the
servlet/filter/listener classes to the Archive and the configuration to the
WebArchiveDescriptorAsset.
Have look at the impl,
http://shrinkwrap.pastebin.com/m37e1ccc6.
A example usage testcase,
http://shrinkwrap.pastebin.com/m19df310e.
And the web.xml output:
http://shrinkwrap.pastebin.com/m55b0fec3.
What you think?
(ps: and yes, I do realize that this is probably not a priority for v. 0.1 :o)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257253#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...