1 22 package org.jboss.deployers.plugins.structure.vfs.jar; 23 24 import org.jboss.deployers.plugins.structure.vfs.CandidateStructureVisitorFactory; 25 import org.jboss.deployers.spi.structure.vfs.StructureMetaData; 26 import org.jboss.deployers.spi.structure.vfs.StructuredDeployers; 27 import org.jboss.virtual.VirtualFile; 28 import org.jboss.virtual.VirtualFileFilter; 29 import org.jboss.virtual.VirtualFileVisitor; 30 import org.jboss.virtual.VisitorAttributes; 31 32 38 public class JARCandidateStructureVisitorFactory implements CandidateStructureVisitorFactory 39 { 40 41 public static final JARCandidateStructureVisitorFactory INSTANCE = new JARCandidateStructureVisitorFactory(); 42 43 44 private VirtualFileFilter filter; 45 46 51 public VirtualFileFilter getFilter() 52 { 53 return filter; 54 } 55 56 61 public void setFilter(VirtualFileFilter filter) 62 { 63 this.filter = filter; 64 } 65 66 public VirtualFileVisitor createVisitor(VirtualFile parent, StructureMetaData metaData, StructuredDeployers deployers, 67 VisitorAttributes attributes) throws Exception 68 { 69 JARCandidateStructureVisitor visitor = new JARCandidateStructureVisitor(parent, metaData, deployers, attributes); 70 if (filter != null) 71 visitor.setFilter(filter); 72 return visitor; 73 } 74 } 75 | Popular Tags |