Package org.jboss.modules
Class DependencySpec
java.lang.Object
org.jboss.modules.DependencySpec
- Direct Known Subclasses:
ModuleDependencySpec
A dependency specification that represents a single dependency for a module. The dependency can be on a local loader
or another module, or on the target module's local loader.
- Author:
- David M. Lloyd, John Bailey, Jason T. Greene
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DependencySpecA constant dependency which always represents a module's own content. -
Method Summary
Modifier and TypeMethodDescriptionstatic DependencySpeccreateClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths) Deprecated.static DependencySpeccreateClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths, boolean export) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateClassLoaderDependencySpec(PathFilter importFilter, PathFilter exportFilter, ClassLoader classLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpecCreate a dependency on the current module's local resources.static DependencySpeccreateLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpeccreateLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths, boolean export) Deprecated.UseLocalDependencySpecBuilderinstead.static DependencySpecDeprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(String name, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(String name, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter exportFilter, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter exportFilter, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleIdentifier identifier) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleIdentifier identifier, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleIdentifier identifier, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.static DependencySpeccreateSystemDependencySpec(Set<String> loaderPaths) Create a system dependency.static DependencySpeccreateSystemDependencySpec(Set<String> loaderPaths, boolean export) Create a system dependency.static DependencySpeccreateSystemDependencySpec(PathFilter importFilter, PathFilter exportFilter, Set<String> loaderPaths) Create a system dependency.Get the dependency class export filter.Get the dependency class import filter.Get the dependency export filter.Get the dependency import filter.Get the dependency resource export filter.Get the dependency resource import filter.
-
Field Details
-
OWN_DEPENDENCY
A constant dependency which always represents a module's own content.
-
-
Method Details
-
getImportFilter
Get the dependency import filter.- Returns:
- the import filter
-
getExportFilter
Get the dependency export filter.- Returns:
- the export filter
-
getResourceImportFilter
Get the dependency resource import filter.- Returns:
- the import filter
-
getResourceExportFilter
Get the dependency resource export filter.- Returns:
- the export filter
-
getClassImportFilter
Get the dependency class import filter.- Returns:
- the class import filter
-
getClassExportFilter
Get the dependency class export filter.- Returns:
- the class export filter
-
createLocalDependencySpec
Create a dependency on the current module's local resources. You should have at least one such dependency on any module which has its own resources. Always returnsOWN_DEPENDENCY.- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the current module's local resources. You should have at least one such dependency on any module which has its own resources.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to apply- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the current module's local resources. You should have at least one such dependency on any module which has its own resources.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyresourceImportFilter- the resource import filter to applyresourceExportFilter- the resource export filter to applyclassImportFilter- the class import filter to applyclassExportFilter- the class export filter to apply- Returns:
- the dependency spec
-
createSystemDependencySpec
Create a system dependency.- Parameters:
loaderPaths- the set of paths to use from the system class loader- Returns:
- the dependency spec
-
createSystemDependencySpec
Create a system dependency.- Parameters:
loaderPaths- the set of paths to use from the system class loaderexport-trueif this is a fully re-exported dependency,falseif it should not be exported- Returns:
- the dependency spec
-
createSystemDependencySpec
public static DependencySpec createSystemDependencySpec(PathFilter importFilter, PathFilter exportFilter, Set<String> loaderPaths) Create a system dependency.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyloaderPaths- the set of paths to use from the system class loader- Returns:
- the dependency spec
-
createClassLoaderDependencySpec
@Deprecated public static DependencySpec createClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given class loader.- Parameters:
classLoader- the class loaderloaderPaths- the set of paths to use from this class loader- Returns:
- the dependency spec
-
createClassLoaderDependencySpec
@Deprecated public static DependencySpec createClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths, boolean export) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given class loader.- Parameters:
classLoader- the class loaderloaderPaths- the set of paths to use from this class loaderexport-trueif this is a fully re-exported dependency,falseif it should not be exported- Returns:
- the dependency spec
-
createClassLoaderDependencySpec
@Deprecated public static DependencySpec createClassLoaderDependencySpec(PathFilter importFilter, PathFilter exportFilter, ClassLoader classLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given class loader.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyclassLoader- the class loaderloaderPaths- the set of paths to use from this class loader- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given local loader.- Parameters:
localLoader- the local loaderloaderPaths- the set of paths that is exposed by the local loader- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths, boolean export) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given local loader.- Parameters:
localLoader- the local loaderloaderPaths- the set of paths that is exposed by the local loaderexport-trueif this is a fully re-exported dependency,falseif it should not be exported- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given local loader.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applylocalLoader- the local loaderloaderPaths- the set of paths that is exposed by the local loader- Returns:
- the dependency spec
-
createLocalDependencySpec
@Deprecated public static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, LocalLoader localLoader, Set<String> loaderPaths) Deprecated.UseLocalDependencySpecBuilderinstead.Create a dependency on the given local loader.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyresourceImportFilter- the resource import filter to applyresourceExportFilter- the resource export filter to applyclassImportFilter- the class import filter to applyclassExportFilter- the class export filter to applylocalLoader- the local loaderloaderPaths- the set of paths that is exposed by the local loader- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
identifier- the module identifier- Returns:
- the dependency spec
-
createModuleDependencySpec
Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
name- the module name- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
identifier- the module identifierexport-trueif the dependency should be exported by default- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(String name, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
name- the module nameexport-trueif the dependency should be exported by default- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
identifier- the module identifierexport-trueif this is a fully re-exported dependency,falseif it should not be exportedoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(String name, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
name- the module nameexport-trueif this is a fully re-exported dependency,falseif it should not be exportedoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
moduleLoader- the specific module loader from which the module should be acquiredidentifier- the module identifierexport-trueif this is a fully re-exported dependency,falseif it should not be exported- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
moduleLoader- the specific module loader from which the module should be acquiredname- the module nameexport-trueif this is a fully re-exported dependency,falseif it should not be exported- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
moduleLoader- the specific module loader from which the module should be acquiredidentifier- the module identifierexport-trueif this is a fully re-exported dependency,falseif it should not be exportedoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
moduleLoader- the specific module loader from which the module should be acquiredname- the module nameexport-trueif this is a fully re-exported dependency,falseif it should not be exportedoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
exportFilter- the export filter to applyidentifier- the module identifieroptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter exportFilter, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
exportFilter- the export filter to applyname- the module nameoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
exportFilter- the export filter to applymoduleLoader- the specific module loader from which the module should be acquiredidentifier- the module identifieroptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
exportFilter- the export filter to applymoduleLoader- the specific module loader from which the module should be acquiredname- the module nameoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applymoduleLoader- the specific module loader from which the module should be acquiredidentifier- the module identifieroptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applymoduleLoader- the specific module loader from which the module should be acquiredname- the module nameoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyresourceImportFilter- the resource import filter to applyresourceExportFilter- the resource export filter to applyclassImportFilter- the class import filter to applyclassExportFilter- the class export filter to applymoduleLoader- the specific module loader from which the module should be acquiredidentifier- the module identifieroptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
createModuleDependencySpec
@Deprecated(forRemoval=true) public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, String name, boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.UseModuleDependencySpecBuilderinstead.Create a dependency on the given module.- Parameters:
importFilter- the import filter to applyexportFilter- the export filter to applyresourceImportFilter- the resource import filter to applyresourceExportFilter- the resource export filter to applyclassImportFilter- the class import filter to applyclassExportFilter- the class export filter to applymoduleLoader- the specific module loader from which the module should be acquiredname- the module nameoptional-trueif the dependency is optional,falseif it is mandatory- Returns:
- the dependency spec
-
LocalDependencySpecBuilderinstead.