Package | Description |
---|---|
org.jboss.modules |
The primary JBoss Modules API.
|
org.jboss.modules.filter |
Classes related to filtering.
|
Modifier and Type | Method and Description |
---|---|
static DependencySpec |
DependencySpec.createClassLoaderDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
ClassLoader classLoader,
Set<String> loaderPaths)
Create a dependency on the given class loader.
|
static LocalLoader |
LocalLoaders.createFilteredLocalLoader(ClassFilter classFilter,
PathFilter resourcePathFilter,
LocalLoader originalLoader)
Create a filtered local loader.
|
static ResourceLoader |
ResourceLoaders.createFilteredResourceLoader(PathFilter pathFilter,
ResourceLoader originalLoader)
Create a filtered view of a resource loader, which allows classes to be included or excluded on a name basis.
|
static DependencySpec |
DependencySpec.createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter)
Create a dependency on the current module's local resources.
|
static DependencySpec |
DependencySpec.createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
LocalLoader localLoader,
Set<String> loaderPaths)
Create a dependency on the given local loader.
|
static DependencySpec |
DependencySpec.createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
PathFilter resourceImportFilter,
PathFilter resourceExportFilter,
ClassFilter classImportFilter,
ClassFilter classExportFilter)
Create a dependency on the current module's local resources.
|
static DependencySpec |
DependencySpec.createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
PathFilter resourceImportFilter,
PathFilter resourceExportFilter,
ClassFilter classImportFilter,
ClassFilter classExportFilter,
LocalLoader localLoader,
Set<String> loaderPaths)
Create a dependency on the given local loader.
|
static DependencySpec |
DependencySpec.createModuleDependencySpec(PathFilter exportFilter,
ModuleIdentifier identifier,
boolean optional)
Create a dependency on the given module.
|
static DependencySpec |
DependencySpec.createModuleDependencySpec(PathFilter exportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional)
Create a dependency on the given module.
|
static DependencySpec |
DependencySpec.createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional)
Create a dependency on the given module.
|
static DependencySpec |
DependencySpec.createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
PathFilter resourceImportFilter,
PathFilter resourceExportFilter,
ClassFilter classImportFilter,
ClassFilter classExportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional)
Create a dependency on the given module.
|
static LocalLoader |
LocalLoaders.createPathFilteredLocalLoader(PathFilter pathFilter,
LocalLoader originalLoader)
Create a filtered local loader.
|
static ResourceLoaderSpec |
ResourceLoaderSpec.createResourceLoaderSpec(ResourceLoader resourceLoader,
PathFilter pathFilter)
Construct a new instance.
|
static DependencySpec |
DependencySpec.createSystemDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
Set<String> loaderPaths)
Create a system dependency.
|
Constructor and Description |
---|
LocalModuleLoader(File[] repoRoots,
PathFilter pathFilter)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static PathFilter |
PathFilters.acceptAll()
Get a filter which always returns
true . |
static PathFilter |
PathFilters.all(Collection<PathFilter> filters)
Get a path filter which returns
true if all of the given filters return true . |
static PathFilter |
PathFilters.all(PathFilter... filters)
Get a path filter which returns
true if all of the given filters return true . |
static PathFilter |
PathFilters.any(Collection<PathFilter> filters)
Get a path filter which returns
true if any of the given filters return true . |
static PathFilter |
PathFilters.any(PathFilter... filters)
Get a path filter which returns
true if any of the given filters return true . |
PathFilter |
MultiplePathFilterBuilder.create()
Create the path filter from this builder's current state.
|
static PathFilter |
PathFilters.getDefaultImportFilter()
Get the default import path filter, which excludes all of
META-INF and its subdirectories. |
static PathFilter |
PathFilters.getDefaultImportFilterWithServices()
Get the default import-with-services path filter which excludes all of
META-INF and its subdirectories,
with the exception of META-INF/services . |
static PathFilter |
PathFilters.getMetaInfFilter()
Get a filter which matches the path
"META-INF" . |
static PathFilter |
PathFilters.getMetaInfServicesFilter()
Get a filter which matches the path
"META-INF/services" . |
static PathFilter |
PathFilters.getMetaInfSubdirectoriesFilter()
Get a filter which matches any subdirectory of the path
"META-INF" . |
static PathFilter |
PathFilters.getMetaInfSubdirectoriesWithoutMetaInfFilter()
Get a filter which matches all of
META-INF 's subdirectories, but not META-INF itself. |
static PathFilter |
PathFilters.in(Set<String> paths)
Get a filter which returns
true if the tested path is contained within the given set. |
static PathFilter |
PathFilters.is(String path)
Get a path filter which matches an exact path name.
|
static PathFilter |
PathFilters.isChildOf(String path)
Get a path filter which matches any path which is a child of the given path name (not including the
path name itself).
|
static PathFilter |
PathFilters.match(String glob)
Get a path filter which matches a glob.
|
static PathFilter |
PathFilters.not(PathFilter filter)
Get a path filter which is
true when the given filter is false , and vice-versa. |
static PathFilter |
PathFilters.rejectAll()
Get a filter which always returns
false . |
Modifier and Type | Method and Description |
---|---|
void |
MultiplePathFilterBuilder.addFilter(PathFilter filter,
boolean include)
Add a filter to this builder.
|
static PathFilter |
PathFilters.all(PathFilter... filters)
Get a path filter which returns
true if all of the given filters return true . |
static PathFilter |
PathFilters.any(PathFilter... filters)
Get a path filter which returns
true if any of the given filters return true . |
static ClassFilter |
ClassFilters.fromResourcePathFilter(PathFilter resourcePathFilter)
Get a class filter which uses a resource path filter to filter classes.
|
static PathFilter |
PathFilters.not(PathFilter filter)
Get a path filter which is
true when the given filter is false , and vice-versa. |
Modifier and Type | Method and Description |
---|---|
static PathFilter |
PathFilters.all(Collection<PathFilter> filters)
Get a path filter which returns
true if all of the given filters return true . |
static PathFilter |
PathFilters.any(Collection<PathFilter> filters)
Get a path filter which returns
true if any of the given filters return true . |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.