Package org.jboss.shrinkwrap.api
Class Filters
- java.lang.Object
-
- org.jboss.shrinkwrap.api.Filters
-
public final class Filters extends Object
Factory class for the creation of newFilter
instances. Filter instances using this shorthand class will be created using theClassLoader
associated with the defaultDomain
'sConfiguration
.- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Filter<ArchivePath>
exclude(Class<?>... classes)
static Filter<ArchivePath>
exclude(Package... packages)
static Filter<ArchivePath>
exclude(String regexp)
static Filter<ArchivePath>
excludePaths(String... paths)
Filter
that exclude allArchivePath
s that match the given List of paths.static Filter<ArchivePath>
excludePaths(Collection<String> paths)
Filter
that exclude allArchivePath
s that match the given List of paths.static Filter<ArchivePath>
include(Class<?>... classes)
static Filter<ArchivePath>
include(Package... packages)
static Filter<ArchivePath>
include(String regexp)
static Filter<ArchivePath>
includeAll()
Filter
that includes allArchivePath
s.static Filter<ArchivePath>
includePaths(String... paths)
Filer
that include allArchivePath
s that match the given List of paths..static Filter<ArchivePath>
includePaths(Collection<String> paths)
Filer
that include allArchivePath
s that match the given List of paths..
-
-
-
Method Detail
-
includeAll
public static Filter<ArchivePath> includeAll()
Filter
that includes allArchivePath
s. Only meant to be used internally.- Returns:
- A
Filter
that always return true
-
include
public static Filter<ArchivePath> include(String regexp)
- Parameters:
regexp
- The expression to include- Returns:
- A Regular Expression based include
Filter
-
exclude
public static Filter<ArchivePath> exclude(String regexp)
- Parameters:
regexp
- The expression to exclude- Returns:
- A Regular Expression based exclude
Filter
-
includePaths
public static Filter<ArchivePath> includePaths(String... paths)
Filer
that include allArchivePath
s that match the given List of paths..- Parameters:
paths
- The paths to included- Returns:
- A Path list based include
Filter
-
includePaths
public static Filter<ArchivePath> includePaths(Collection<String> paths)
Filer
that include allArchivePath
s that match the given List of paths..- Parameters:
paths
- The paths to included- Returns:
- A Path list based include
Filter
-
excludePaths
public static Filter<ArchivePath> excludePaths(String... paths)
Filter
that exclude allArchivePath
s that match the given List of paths.- Parameters:
paths
- The paths to exclude- Returns:
- A Path list based exclude
Filter
-
excludePaths
public static Filter<ArchivePath> excludePaths(Collection<String> paths)
Filter
that exclude allArchivePath
s that match the given List of paths.- Parameters:
paths
- The paths to exclude- Returns:
- A Path list based exclude
Filter
-
exclude
public static Filter<ArchivePath> exclude(Package... packages)
- Parameters:
packages
- To be included- Returns:
-
include
public static Filter<ArchivePath> include(Package... packages)
- Parameters:
packages
- To be excluded- Returns:
-
include
public static Filter<ArchivePath> include(Class<?>... classes)
- Parameters:
classes
- To be included- Returns:
-
exclude
public static Filter<ArchivePath> exclude(Class<?>... classes)
- Parameters:
classes
- To be excluded- Returns:
-
-