public final class Filters
extends java.lang.Object
Filter
instances. Filter instances using this shorthand class will be
created using the ClassLoader
associated with the default Domain
's Configuration
.Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
IMPL_CLASS_NAME_EXCLUDE_PATHS |
private static java.lang.String |
IMPL_CLASS_NAME_EXCLUDE_REGEXP_PATHS |
private static java.lang.String |
IMPL_CLASS_NAME_INCLUDE_ALL_PATHS |
private static java.lang.String |
IMPL_CLASS_NAME_INCLUDE_PATHS |
private static java.lang.String |
IMPL_CLASS_NAME_INCLUDE_REGEXP_PATHS |
Modifier | Constructor and Description |
---|---|
private |
Filters()
No instantiation
|
Modifier and Type | Method and Description |
---|---|
private static Filter<ArchivePath> |
createRegExpFilter(java.lang.String regExpFilterImplName,
java.lang.Class<?>... classes) |
private static Filter<ArchivePath> |
createRegExpFilter(java.lang.String filterClassName,
java.lang.Package... packages) |
static Filter<ArchivePath> |
exclude(java.lang.Class<?>... classes)
Filter that excludes listed Class . |
static Filter<ArchivePath> |
exclude(java.lang.Package... packages)
Filter that includes listed Package . |
static Filter<ArchivePath> |
exclude(java.lang.String regexp)
|
static Filter<ArchivePath> |
excludePaths(java.util.Collection<java.lang.String> paths)
Filter that exclude all ArchivePath s that match the given List of paths. |
static Filter<ArchivePath> |
excludePaths(java.lang.String... paths)
Filter that exclude all ArchivePath s that match the given List of paths. |
private static Filter<ArchivePath> |
getFilterInstance(java.lang.String filterClassName,
java.lang.Class<?>[] ctorTypes,
java.lang.Object[] ctorArguments)
Creates a new
Filter instance using the given impl class name, constructor arguments and type |
static Filter<ArchivePath> |
include(java.lang.Class<?>... classes)
Filter that includes listed Class . |
static Filter<ArchivePath> |
include(java.lang.Package... packages)
Filter that excludes listed Package . |
static Filter<ArchivePath> |
include(java.lang.String regexp)
|
static Filter<ArchivePath> |
includeAll()
Filter that includes all ArchivePath s. |
static Filter<ArchivePath> |
includePaths(java.util.Collection<java.lang.String> paths)
Filer that include all ArchivePath s that match the given List of paths.. |
static Filter<ArchivePath> |
includePaths(java.lang.String... paths)
Filer that include all ArchivePath s that match the given List of paths.. |
private static final java.lang.String IMPL_CLASS_NAME_INCLUDE_ALL_PATHS
private static final java.lang.String IMPL_CLASS_NAME_INCLUDE_REGEXP_PATHS
private static final java.lang.String IMPL_CLASS_NAME_EXCLUDE_REGEXP_PATHS
private static final java.lang.String IMPL_CLASS_NAME_INCLUDE_PATHS
private static final java.lang.String IMPL_CLASS_NAME_EXCLUDE_PATHS
public static Filter<ArchivePath> includeAll()
Filter
that includes all ArchivePath
s.
Only meant to be used internally.Filter
that always return truepublic static Filter<ArchivePath> include(java.lang.String regexp)
regexp
- The expression to includeFilter
public static Filter<ArchivePath> exclude(java.lang.String regexp)
regexp
- The expression to excludeFilter
public static Filter<ArchivePath> includePaths(java.lang.String... paths)
Filer
that include all ArchivePath
s that match the given List of paths..paths
- The paths to includedFilter
public static Filter<ArchivePath> includePaths(java.util.Collection<java.lang.String> paths)
Filer
that include all ArchivePath
s that match the given List of paths..paths
- The paths to includedFilter
public static Filter<ArchivePath> excludePaths(java.lang.String... paths)
Filter
that exclude all ArchivePath
s that match the given List of paths.paths
- The paths to excludeFilter
public static Filter<ArchivePath> excludePaths(java.util.Collection<java.lang.String> paths)
Filter
that exclude all ArchivePath
s that match the given List of paths.paths
- The paths to excludeFilter
public static Filter<ArchivePath> exclude(java.lang.Package... packages)
Filter
that includes listed Package
.packages
- To be includedpublic static Filter<ArchivePath> include(java.lang.Package... packages)
Filter
that excludes listed Package
.packages
- To be excludedprivate static Filter<ArchivePath> createRegExpFilter(java.lang.String filterClassName, java.lang.Package... packages)
public static Filter<ArchivePath> include(java.lang.Class<?>... classes)
Filter
that includes listed Class
.classes
- To be includedpublic static Filter<ArchivePath> exclude(java.lang.Class<?>... classes)
Filter
that excludes listed Class
.classes
- To be excludedprivate static Filter<ArchivePath> createRegExpFilter(java.lang.String regExpFilterImplName, java.lang.Class<?>... classes)
private static Filter<ArchivePath> getFilterInstance(java.lang.String filterClassName, java.lang.Class<?>[] ctorTypes, java.lang.Object[] ctorArguments)
Filter
instance using the given impl class name, constructor arguments and typefilterClassName
- ctorTypes
- ctorArguments
-