Package org.jboss.shrinkwrap.api
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: $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Filter
<ArchivePath> createRegExpFilter
(String regExpFilterImplName, Class<?>... classes) private static Filter
<ArchivePath> createRegExpFilter
(String filterClassName, Package... packages) static Filter
<ArchivePath> static Filter
<ArchivePath> static Filter
<ArchivePath> 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.private static Filter
<ArchivePath> getFilterInstance
(String filterClassName, Class<?>[] ctorTypes, Object[] ctorArguments) Creates a newFilter
instance using the given impl class name, constructor arguments and typestatic Filter
<ArchivePath> static Filter
<ArchivePath> static Filter
<ArchivePath> static Filter
<ArchivePath> 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..
-
Field Details
-
IMPL_CLASS_NAME_INCLUDE_ALL_PATHS
- See Also:
-
IMPL_CLASS_NAME_INCLUDE_REGEXP_PATHS
- See Also:
-
IMPL_CLASS_NAME_EXCLUDE_REGEXP_PATHS
- See Also:
-
IMPL_CLASS_NAME_INCLUDE_PATHS
- See Also:
-
IMPL_CLASS_NAME_EXCLUDE_PATHS
- See Also:
-
-
Constructor Details
-
Filters
private Filters()No instantiation
-
-
Method Details
-
includeAll
Filter
that includes allArchivePath
s. Only meant to be used internally.- Returns:
- A
Filter
that 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
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
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
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
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
- Parameters:
packages
- To be included- Returns:
-
include
- Parameters:
packages
- To be excluded- Returns:
-
createRegExpFilter
-
include
- Parameters:
classes
- To be included- Returns:
-
exclude
- Parameters:
classes
- To be excluded- Returns:
-
createRegExpFilter
private static Filter<ArchivePath> createRegExpFilter(String regExpFilterImplName, Class<?>... classes) -
getFilterInstance
private static Filter<ArchivePath> getFilterInstance(String filterClassName, Class<?>[] ctorTypes, Object[] ctorArguments) Creates a newFilter
instance using the given impl class name, constructor arguments and type- Parameters:
filterClassName
-ctorTypes
-ctorArguments
-- Returns:
-