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) 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.private static Filter<ArchivePath> getFilterInstance(String filterClassName, Class<?>[] ctorTypes, Object[] ctorArguments) Creates a newFilterinstance using the given impl class name, constructor arguments and typestatic Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> static Filter<ArchivePath> Filterthat includes allArchivePaths.static Filter<ArchivePath> includePaths(String... paths) Filerthat include allArchivePaths that match the given List of paths..static Filter<ArchivePath> includePaths(Collection<String> paths) Filerthat include allArchivePaths 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
Filterthat includes allArchivePaths. Only meant to be used internally.- 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
Filerthat include allArchivePaths that match the given List of paths..- Parameters:
paths- The paths to included- Returns:
- A Path list based include
Filter
-
includePaths
Filerthat 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:
-
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
-