That's very adhoc and hacky and in the wrong place.
The VFS doesn't need callbacks based on path names (which aren't even guaranteed)
with the real semantics belonging in the VDF.
The real issue is how the creator of the deployment controls the VFS url and the
behaviour required behind the scenes to handle this problem.
At the vfs level this is either a parameter on the initial url a failing that or a
different protocol
type to support the legacy unpacking mechanism and the return of a "jar:" url
from the VirtualFile.toURL().
For programmatic deployment its easy to decide what the URL upfront should be.
Other more automatic rules should be in the Structure Deployers. They're the ones
that know a context is a war and can decide based on some metadata in the deployment
or an external ruile that a paricular war or all wars should be unpacked when
they are subdeployments.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144186#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...