[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Programmatic policy for jar handling

adrian@jboss.org do-not-reply at jboss.com
Tue Apr 15 07:53:27 EDT 2008


"adrian at jboss.org" wrote : 
  | The StructureDeployers are only looking for resources and creating ContextInfo.
  | The real VFSDeploymentContext is constructed once the structure is determined.
  | 
  | See VFSStructureBuilder::createChildDeploymentContext()
  | which is where any additional metadata (e.g. unpack) would actually get used.

In principle it could be all implemented in that method.

If the ContextInfo says unpack=true we just copy the nested jar to temp
and create a VirtualFileContext over it. The issue would be to make sure
that the context has the correct parent such that it still has the correct VFS name.

This is similar to how to the current (but unused) copy to java.io.tmpdir works so
I knows its possible :-)

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

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



More information about the jboss-dev-forums mailing list