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

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

## Uses of ClassFilter in org.jboss.modules

Methods in org.jboss.modules that return ClassFilter
Modifier and Type
Method
Description
`ClassFilter`
DependencySpec.`getClassExportFilter()`
Get the dependency class export filter.
`ClassFilter`
DependencySpecBuilder.`getClassExportFilter()`
Get the class export filter to use.
`ClassFilter`
DependencySpec.`getClassImportFilter()`
Get the dependency class import filter.
`ClassFilter`
DependencySpecBuilder.`getClassImportFilter()`
Get the class import filter to use.
Methods in org.jboss.modules with parameters of type ClassFilter
Modifier and Type
Method
Description
`static LocalLoader`
LocalLoaders.`createClassFilteredLocalLoader(ClassFilter classFilter, LocalLoader originalLoader)`
Create a filtered local loader.
`static LocalLoader`
LocalLoaders.`createFilteredLocalLoader(ClassFilter classFilter, PathFilter resourcePathFilter, LocalLoader originalLoader)`
Create a filtered local loader.
`static IterableLocalLoader`
LocalLoaders.`createIterableClassFilteredLocalLoader(ClassFilter classFilter, IterableLocalLoader originalLoader)`
Create a filtered local loader.
`static IterableLocalLoader`
LocalLoaders.`createIterableFilteredLocalLoader(ClassFilter classFilter, PathFilter resourcePathFilter, IterableLocalLoader originalLoader)`
Create a filtered local loader.
`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.`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.
`DependencySpecBuilder`
DependencySpecBuilder.`setClassExportFilter(ClassFilter classExportFilter)`
Set the class export filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setClassExportFilter(ClassFilter classExportFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setClassExportFilter(ClassFilter classExportFilter)`
`DependencySpecBuilder`
DependencySpecBuilder.`setClassImportFilter(ClassFilter classImportFilter)`
Set the class import filter to use.
`LocalDependencySpecBuilder`
LocalDependencySpecBuilder.`setClassImportFilter(ClassFilter classImportFilter)`
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setClassImportFilter(ClassFilter classImportFilter)`

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

Methods in org.jboss.modules.filter that return ClassFilter
Modifier and Type
Method
Description
`static ClassFilter`
ClassFilters.`acceptAll()`
Get a filter which always returns `true`.
`static ClassFilter`
ClassFilters.`fromResourcePathFilter(PathFilter resourcePathFilter)`
Get a class filter which uses a resource path filter to filter classes.
`static ClassFilter`
ClassFilters.`rejectAll()`
Get a filter which always returns `false`.