org.jboss.classloading.plugins.vfs
Class PackageVisitor
java.lang.Object
org.jboss.virtual.plugins.vfs.helpers.AbstractVirtualFileFilterWithAttributes
org.jboss.classloading.plugins.vfs.PackageVisitor
- All Implemented Interfaces:
- org.jboss.virtual.VirtualFileFilter, org.jboss.virtual.VirtualFileFilterWithAttributes, org.jboss.virtual.VirtualFileVisitor
public class PackageVisitor
- extends org.jboss.virtual.plugins.vfs.helpers.AbstractVirtualFileFilterWithAttributes
- implements org.jboss.virtual.VirtualFileVisitor
Visits a virtual file system recursively
to determine package names based on the exportAll policy
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
determineAllPackages
public static Set<String> determineAllPackages(org.jboss.virtual.VirtualFile[] roots,
org.jboss.virtual.VirtualFile[] excludedRoots,
ExportAll exportAll,
ClassFilter included,
ClassFilter excluded,
ClassFilter excludedExport)
- Determine the packages
- Parameters:
roots
- the rootsexcludedRoots
- the excluded rootsexportAll
- the exportAllincluded
- the included packagesexcluded
- the excluded packagesexcludedExport
- the excluded export packages
- Returns:
- the packages
getAttributes
public org.jboss.virtual.VisitorAttributes getAttributes()
- Specified by:
getAttributes
in interface org.jboss.virtual.VirtualFileFilterWithAttributes
- Specified by:
getAttributes
in interface org.jboss.virtual.VirtualFileVisitor
- Overrides:
getAttributes
in class org.jboss.virtual.plugins.vfs.helpers.AbstractVirtualFileFilterWithAttributes
accepts
public boolean accepts(org.jboss.virtual.VirtualFile file)
- Specified by:
accepts
in interface org.jboss.virtual.VirtualFileFilter
visit
public void visit(org.jboss.virtual.VirtualFile file)
- Specified by:
visit
in interface org.jboss.virtual.VirtualFileVisitor
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.