Class Filters
java.lang.Object
org.jboss.shrinkwrap.api.Filters
Factory class for the creation of new
Filter instances. Filter instances using this shorthand class will be
created using the ClassLoader associated with the default Domain's Configuration.- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
Method Summary
Modifier and TypeMethodDescriptionstatic Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> excludePaths(String... paths) Filterthat exclude allArchivePaths that match the given List of paths.static Filter<ArchivePath> excludePaths(Collection<String> paths) Filterthat exclude allArchivePaths that match the given List of paths.static Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> Filterthat includes allArchivePaths.static Filter<ArchivePath> includePaths(String... paths) Filterthat include allArchivePaths that match the given List of paths.static Filter<ArchivePath> includePaths(Collection<String> paths) Filterthat include allArchivePaths that match the given List of paths.
-
Method Details
-
includeAll
- Returns:
- A
Filterthat always return true
-
include
- Parameters:
regexp- The expression to include- Returns:
- A Regular Expression based include
Filter
-
exclude
- Parameters:
regexp- The expression to exclude- Returns:
- A Regular Expression based exclude
Filter
-
includePaths
Filterthat include allArchivePaths that match the given List of paths.- Parameters:
paths- The paths to included- Returns:
- A Path list based include
Filter
-
includePaths
Filterthat include allArchivePaths that match the given List of paths.- Parameters:
paths- The paths to included- Returns:
- A Path list based include
Filter
-
excludePaths
Filterthat exclude allArchivePaths that match the given List of paths.- Parameters:
paths- The paths to exclude- Returns:
- A Path list based exclude
Filter
-
excludePaths
Filterthat exclude allArchivePaths that match the given List of paths.- Parameters:
paths- The paths to exclude- Returns:
- A Path list based exclude
Filter
-
exclude
- Parameters:
packages- To be included- Returns:
- The filter for the specified packages
-
include
- Parameters:
packages- To be excluded- Returns:
- The filter for the specified packages
-
include
- Parameters:
classes- To be included- Returns:
- The filter for the specified classes
-
exclude
- Parameters:
classes- To be excluded- Returns:
- The filter for the specified classes
-