# Uses of Interface
org.jboss.modules.filter.PathFilter

Packages that use PathFilter
Package
Description
org.jboss.modules
The primary JBoss Modules API.
org.jboss.modules.filter
Classes related to filtering.

## Uses of PathFilter in org.jboss.modules

Methods in org.jboss.modules that return PathFilter
Modifier and Type
Method
Description
`PathFilter`
DependencySpec.`getExportFilter()`
Get the dependency export filter.
`PathFilter`
DependencySpecBuilder.`getExportFilter()`
Get the export filter to use.
`PathFilter`
DependencySpec.`getImportFilter()`
Get the dependency import filter.
`PathFilter`
DependencySpecBuilder.`getImportFilter()`
Get the import filter to use.
`PathFilter`
LocalDependencySpecBuilder.`getImportFilter()`
Get the import filter to use.
`PathFilter`
DependencySpec.`getResourceExportFilter()`
Get the dependency resource export filter.
`PathFilter`
DependencySpecBuilder.`getResourceExportFilter()`
Get the resource export filter to use.
`PathFilter`
DependencySpec.`getResourceImportFilter()`
Get the dependency resource import filter.
`PathFilter`
DependencySpecBuilder.`getResourceImportFilter()`
Get the resource import filter to use.
Methods in org.jboss.modules with parameters of type PathFilter
Modifier and Type
Method
Description
`static DependencySpec`
DependencySpec.`createClassLoaderDependencySpec(PathFilter importFilter, PathFilter exportFilter, ClassLoader classLoader, Set<String> loaderPaths)`
Deprecated.
Use `LocalDependencySpecBuilder` instead.
`static LocalLoader`
LocalLoaders.`createFilteredLocalLoader(ClassFilter classFilter, PathFilter resourcePathFilter, LocalLoader originalLoader)`
Create a filtered local loader.
`static IterableResourceLoader`
ResourceLoaders.`createFilteredResourceLoader(PathFilter pathFilter, IterableResourceLoader originalLoader)`
Create a filtered view of an iterable resource loader, which allows classes to be included or excluded on a name basis.
`static ResourceLoader`
ResourceLoaders.`createFilteredResourceLoader(PathFilter pathFilter, ResourceLoader originalLoader)`
Create a filtered view of a resource loader, which allows classes to be included or excluded on a name basis.
`static IterableLocalLoader`
LocalLoaders.`createIterableFilteredLocalLoader(ClassFilter classFilter, PathFilter resourcePathFilter, IterableLocalLoader originalLoader)`
Create a filtered local loader.
`static IterableResourceLoader`
ResourceLoaders.`createIterableFilteredResourceLoader(PathFilter pathFilter, IterableResourceLoader originalLoader)`
Deprecated.
Use `ResourceLoaders.createFileResourceLoader(String, File)` instead.
`static IterableLocalLoader`
LocalLoaders.`createIterablePathFilteredLocalLoader(PathFilter pathFilter, IterableLocalLoader originalLoader)`
Create a filtered local loader.
`static DependencySpec`
DependencySpec.`createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter)`
Deprecated.
Use `LocalDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter)`
Deprecated.
Use `LocalDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, LocalLoader localLoader, Set<String> loaderPaths)`
Deprecated.
Use `LocalDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, LocalLoader localLoader, Set<String> loaderPaths)`
Deprecated.
Use `LocalDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static LocalLoader`
LocalLoaders.`createPathFilteredLocalLoader(PathFilter pathFilter, LocalLoader originalLoader)`
Create a filtered local loader.
`static ResourceLoaderSpec`
ResourceLoaderSpec.`createResourceLoaderSpec(ResourceLoader resourceLoader, PathFilter pathFilter)`
Construct a new instance.
`static DependencySpec`
DependencySpec.`createSystemDependencySpec(PathFilter importFilter, PathFilter exportFilter, Set<String> loaderPaths)`
Create a system dependency.
`static <T extends Collection<? super String>>
T`
PathUtils.`filterPaths(Iterable<String> source, PathFilter filter, T target)`
Filter the paths from `source` into `target` using `filter`.
`Iterator<Resource>`
Module.`iterateResources(PathFilter filter)`
Enumerate all the imported resources in this module, subject to a path filter.
`DependencySpecBuilder`
DependencySpecBuilder.`setExportFilter(PathFilter exportFilter)`
Set the export filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setExportFilter(PathFilter exportFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setExportFilter(PathFilter exportFilter)`
`DependencySpecBuilder`
DependencySpecBuilder.`setImportFilter(PathFilter importFilter)`
Set the import filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setImportFilter(PathFilter importFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setImportFilter(PathFilter importFilter)`
`DependencySpecBuilder`
DependencySpecBuilder.`setResourceExportFilter(PathFilter resourceExportFilter)`
Set the resource export filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setResourceExportFilter(PathFilter resourceExportFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setResourceExportFilter(PathFilter resourceExportFilter)`
`DependencySpecBuilder`
DependencySpecBuilder.`setResourceImportFilter(PathFilter resourceImportFilter)`
Set the resource import filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setResourceImportFilter(PathFilter resourceImportFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setResourceImportFilter(PathFilter resourceImportFilter)`
Constructors in org.jboss.modules with parameters of type PathFilter
Modifier
Constructor
Description
``
`LocalModuleFinder(File[] repoRoots, PathFilter pathFilter)`
Construct a new instance.
``
`LocalModuleLoader(File[] repoRoots, PathFilter pathFilter)`
Construct a new instance.

## Uses of PathFilter in org.jboss.modules.filter

Methods in org.jboss.modules.filter that return PathFilter
Modifier and Type
Method
Description
`static PathFilter`
PathFilters.`acceptAll()`
Get a filter which always returns `true`.
`static PathFilter`
PathFilters.`all(Collection<PathFilter> filters)`
Get a path filter which returns `true` if all of the given filters return `true`.
`static PathFilter`
PathFilters.`all(PathFilter... filters)`
Get a path filter which returns `true` if all of the given filters return `true`.
`static PathFilter`
PathFilters.`any(Collection<PathFilter> filters)`
Get a path filter which returns `true` if any of the given filters return `true`.
`static PathFilter`
PathFilters.`any(PathFilter... filters)`
Get a path filter which returns `true` if any of the given filters return `true`.
`PathFilter`
MultiplePathFilterBuilder.`create()`
Create the path filter from this builder's current state.
`static PathFilter`
PathFilters.`getDefaultImportFilter()`
Get the default import path filter, which excludes all of `META-INF` and its subdirectories.
`static PathFilter`
PathFilters.`getDefaultImportFilterWithServices()`
Get the default import-with-services path filter which excludes all of `META-INF` and its subdirectories, with the exception of `META-INF/services`.
`static PathFilter`
PathFilters.`getMetaInfFilter()`
Get a filter which matches the path `"META-INF"`.
`static PathFilter`
PathFilters.`getMetaInfServicesFilter()`
Get a filter which matches the path `"META-INF/services"`.
`static PathFilter`
PathFilters.`getMetaInfSubdirectoriesFilter()`
Get a filter which matches any subdirectory of the path `"META-INF"`.
`static PathFilter`
PathFilters.`getMetaInfSubdirectoriesWithoutMetaInfFilter()`
Get a filter which matches all of `META-INF`'s subdirectories, but not `META-INF` itself.
`static PathFilter`
PathFilters.`in(Collection<String> paths)`
Get a filter which returns `true` if the tested path is contained within the given collection.
`static PathFilter`
PathFilters.`in(Set<String> paths)`
Get a filter which returns `true` if the tested path is contained within the given set.
`static PathFilter`
PathFilters.`is(String path)`
Get a path filter which matches an exact path name.
`static PathFilter`
PathFilters.`isChildOf(String path)`
Get a path filter which matches any path which is a child of the given path name (not including the path name itself).
`static PathFilter`
PathFilters.`isOrIsChildOf(String path)`
Get a path filter which matches any path which is equal to, or a child of, the given path name.
`static PathFilter`
PathFilters.`match(String glob)`
Get a path filter which matches a glob.
`static PathFilter`
PathFilters.`none(Collection<PathFilter> filters)`
Get a path filter which returns `true` if none of the given filters return `true`.
`static PathFilter`
PathFilters.`none(PathFilter... filters)`
Get a path filter which returns `true` if none of the given filters return `true`.
`static PathFilter`
PathFilters.`not(PathFilter filter)`
Get a path filter which is `true` when the given filter is `false`, and vice-versa.
`static PathFilter`
PathFilters.`rejectAll()`
Get a filter which always returns `false`.
Methods in org.jboss.modules.filter with parameters of type PathFilter
Modifier and Type
Method
Description
`void`
MultiplePathFilterBuilder.`addFilter(PathFilter filter, boolean include)`
Add a filter to this builder.
`static PathFilter`
PathFilters.`all(PathFilter... filters)`
Get a path filter which returns `true` if all of the given filters return `true`.
`static PathFilter`
PathFilters.`any(PathFilter... filters)`
Get a path filter which returns `true` if any of the given filters return `true`.
`static Iterator<Resource>`
PathFilters.`filtered(PathFilter filter, Iterator<Resource> original)`
Get a filtered view of a resource iteration.
`static ClassFilter`
ClassFilters.`fromResourcePathFilter(PathFilter resourcePathFilter)`
Get a class filter which uses a resource path filter to filter classes.
`static PathFilter`
PathFilters.`none(PathFilter... filters)`
Get a path filter which returns `true` if none of the given filters return `true`.
`static PathFilter`
PathFilters.`not(PathFilter filter)`
Get a path filter which is `true` when the given filter is `false`, and vice-versa.
Method parameters in org.jboss.modules.filter with type arguments of type PathFilter
Modifier and Type
Method
Description
`static PathFilter`
PathFilters.`all(Collection<PathFilter> filters)`
Get a path filter which returns `true` if all of the given filters return `true`.
`static PathFilter`
PathFilters.`any(Collection<PathFilter> filters)`
Get a path filter which returns `true` if any of the given filters return `true`.
`static PathFilter`
PathFilters.`none(Collection<PathFilter> filters)`
Get a path filter which returns `true` if none of the given filters return `true`.