jboss5 trunk has been updated for VFS changes to the visitor recursion and isAttribute
removal.
Code that previously was using VisitorAttributes.setRecurseArchives(false):
| VisitorAttributes va = new VisitorAttributes();
| va.setRecurse(true);
| va.setLeavesOnly(true);
| va.setRecurseArchives(false);
| FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filter, va);
|
Now needs to specify a recursion filter. To exclude known jar achive suffixes the
following can be done:
| VisitorAttributes va = new VisitorAttributes();
| va.setLeavesOnly(true);
| SuffixesExcludeFilter noJars = new
SuffixesExcludeFilter(JarUtils.getSuffixes());
| va.setRecurseFilter(noJars);
| FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filter, va);
|
The server is booting fine with these changes. I'm still validating that there is no
extra recursion/components being created because of these changes.
The next refactoring I'm testing is the structural deployer changes to produce a
StructuredMetaData object rather than DeploymentContexts.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979462#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...