ModuleDependencySpec
public abstract class DependencySpec extends Object
Modifier and Type | Method | Description |
---|---|---|
static DependencySpec |
createClassLoaderDependencySpec(ClassLoader classLoader,
Set<String> loaderPaths) |
Create a dependency on the given class loader.
|
static DependencySpec |
createClassLoaderDependencySpec(ClassLoader classLoader,
Set<String> loaderPaths,
boolean export) |
Create a dependency on the given class loader.
|
static DependencySpec |
createClassLoaderDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
ClassLoader classLoader,
Set<String> loaderPaths) |
Create a dependency on the given class loader.
|
static DependencySpec |
createLocalDependencySpec() |
Create a dependency on the current module's local resources.
|
static DependencySpec |
createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter) |
Create a dependency on the current module's local resources.
|
static 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 |
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 |
createLocalDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
LocalLoader localLoader,
Set<String> loaderPaths) |
Create a dependency on the given local loader.
|
static DependencySpec |
createLocalDependencySpec(LocalLoader localLoader,
Set<String> loaderPaths) |
Create a dependency on the given local loader.
|
static DependencySpec |
createLocalDependencySpec(LocalLoader localLoader,
Set<String> loaderPaths,
boolean export) |
Create a dependency on the given local loader.
|
static DependencySpec |
createModuleDependencySpec(String name) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(String name,
boolean export) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(String name,
boolean export,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(PathFilter exportFilter,
String name,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
PathFilter resourceImportFilter,
PathFilter resourceExportFilter,
ClassFilter classImportFilter,
ClassFilter classExportFilter,
ModuleLoader moduleLoader,
String name,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
PathFilter resourceImportFilter,
PathFilter resourceExportFilter,
ClassFilter classImportFilter,
ClassFilter classExportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional) |
|
static DependencySpec |
createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
ModuleLoader moduleLoader,
String name,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional) |
|
static DependencySpec |
createModuleDependencySpec(PathFilter exportFilter,
ModuleIdentifier identifier,
boolean optional) |
Deprecated.
|
static DependencySpec |
createModuleDependencySpec(PathFilter exportFilter,
ModuleLoader moduleLoader,
String name,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(PathFilter exportFilter,
ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean optional) |
Deprecated.
|
static DependencySpec |
createModuleDependencySpec(ModuleIdentifier identifier) |
Deprecated.
Use
createModuleDependencySpec(String) instead. |
static DependencySpec |
createModuleDependencySpec(ModuleIdentifier identifier,
boolean export) |
Deprecated.
Use
createModuleDependencySpec(String,boolean) instead. |
static DependencySpec |
createModuleDependencySpec(ModuleIdentifier identifier,
boolean export,
boolean optional) |
Deprecated.
Use
createModuleDependencySpec(String,boolean,boolean) instead. |
static DependencySpec |
createModuleDependencySpec(ModuleLoader moduleLoader,
String name,
boolean export) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(ModuleLoader moduleLoader,
String name,
boolean export,
boolean optional) |
Create a dependency on the given module.
|
static DependencySpec |
createModuleDependencySpec(ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean export) |
Deprecated.
|
static DependencySpec |
createModuleDependencySpec(ModuleLoader moduleLoader,
ModuleIdentifier identifier,
boolean export,
boolean optional) |
Deprecated.
|
static DependencySpec |
createSystemDependencySpec(Set<String> loaderPaths) |
Create a system dependency.
|
static DependencySpec |
createSystemDependencySpec(Set<String> loaderPaths,
boolean export) |
Create a system dependency.
|
static DependencySpec |
createSystemDependencySpec(PathFilter importFilter,
PathFilter exportFilter,
Set<String> loaderPaths) |
Create a system dependency.
|
ClassFilter |
getClassExportFilter() |
Get the dependency class export filter.
|
ClassFilter |
getClassImportFilter() |
Get the dependency class import filter.
|
PathFilter |
getExportFilter() |
Get the dependency export filter.
|
PathFilter |
getImportFilter() |
Get the dependency import filter.
|
PathFilter |
getResourceExportFilter() |
Get the dependency resource export filter.
|
PathFilter |
getResourceImportFilter() |
Get the dependency resource import filter.
|
public PathFilter getImportFilter()
public PathFilter getExportFilter()
public PathFilter getResourceImportFilter()
public PathFilter getResourceExportFilter()
public ClassFilter getClassImportFilter()
public ClassFilter getClassExportFilter()
public static DependencySpec createLocalDependencySpec()
public static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter)
importFilter
- the import filter to applyexportFilter
- the export filter to applypublic static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter)
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 applypublic static DependencySpec createSystemDependencySpec(Set<String> loaderPaths)
loaderPaths
- the set of paths to use from the system class loaderpublic static DependencySpec createSystemDependencySpec(Set<String> loaderPaths, boolean export)
loaderPaths
- the set of paths to use from the system class loaderexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedpublic static DependencySpec createSystemDependencySpec(PathFilter importFilter, PathFilter exportFilter, Set<String> loaderPaths)
importFilter
- the import filter to applyexportFilter
- the export filter to applyloaderPaths
- the set of paths to use from the system class loaderpublic static DependencySpec createClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths)
classLoader
- the class loaderloaderPaths
- the set of paths to use from this class loaderpublic static DependencySpec createClassLoaderDependencySpec(ClassLoader classLoader, Set<String> loaderPaths, boolean export)
classLoader
- the class loaderloaderPaths
- the set of paths to use from this class loaderexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedpublic static DependencySpec createClassLoaderDependencySpec(PathFilter importFilter, PathFilter exportFilter, ClassLoader classLoader, Set<String> loaderPaths)
importFilter
- the import filter to applyexportFilter
- the export filter to applyclassLoader
- the class loaderloaderPaths
- the set of paths to use from this class loaderpublic static DependencySpec createLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths)
localLoader
- the local loaderloaderPaths
- the set of paths that is exposed by the local loaderpublic static DependencySpec createLocalDependencySpec(LocalLoader localLoader, Set<String> loaderPaths, boolean export)
localLoader
- the local loaderloaderPaths
- the set of paths that is exposed by the local loaderexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedpublic static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, LocalLoader localLoader, Set<String> loaderPaths)
importFilter
- the import filter to applyexportFilter
- the export filter to applylocalLoader
- the local loaderloaderPaths
- the set of paths that is exposed by the local loaderpublic static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, LocalLoader localLoader, Set<String> loaderPaths)
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@Deprecated public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier)
createModuleDependencySpec(String)
instead.identifier
- the module identifierpublic static DependencySpec createModuleDependencySpec(String name)
name
- the module name@Deprecated public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export)
createModuleDependencySpec(String,boolean)
instead.identifier
- the module identifierexport
- true
if the dependency should be exported by defaultpublic static DependencySpec createModuleDependencySpec(String name, boolean export)
name
- the module nameexport
- true
if the dependency should be exported by default@Deprecated public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export, boolean optional)
createModuleDependencySpec(String,boolean,boolean)
instead.identifier
- the module identifierexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedoptional
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(String name, boolean export, boolean optional)
name
- the module nameexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedoptional
- true
if the dependency is optional, false
if it is mandatory@Deprecated public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export)
createModuleDependencySpec(ModuleLoader, String, boolean)
instead.moduleLoader
- the specific module loader from which the module should be acquiredidentifier
- the module identifierexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedpublic static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export)
moduleLoader
- the specific module loader from which the module should be acquiredname
- the module nameexport
- true
if this is a fully re-exported dependency, false
if it should not be exported@Deprecated public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export, boolean optional)
createModuleDependencySpec(ModuleLoader,String,boolean,boolean)
instead.moduleLoader
- the specific module loader from which the module should be acquiredidentifier
- the module identifierexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedoptional
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export, boolean optional)
moduleLoader
- the specific module loader from which the module should be acquiredname
- the module nameexport
- true
if this is a fully re-exported dependency, false
if it should not be exportedoptional
- true
if the dependency is optional, false
if it is mandatory@Deprecated public static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleIdentifier identifier, boolean optional)
createModuleDependencySpec(PathFilter,String,boolean)
instead.exportFilter
- the export filter to applyidentifier
- the module identifieroptional
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(PathFilter exportFilter, String name, boolean optional)
exportFilter
- the export filter to applyname
- the module nameoptional
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)
createModuleDependencySpec(PathFilter,ModuleLoader,String,boolean)
instead.exportFilter
- the export filter to applymoduleLoader
- the specific module loader from which the module should be acquiredidentifier
- the module identifieroptional
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)
exportFilter
- the export filter to applymoduleLoader
- the specific module loader from which the module should be acquiredname
- the module nameoptional
- true
if the dependency is optional, false
if it is mandatory@Deprecated public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)
createModuleDependencySpec(PathFilter, PathFilter, PathFilter, PathFilter, ClassFilter, ClassFilter, ModuleLoader, String, boolean)
instead.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
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)
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
- true
if the dependency is optional, false
if it is mandatory@Deprecated public static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)
createModuleDependencySpec(PathFilter,PathFilter,PathFilter,PathFilter,ClassFilter,ClassFilter,ModuleLoader,String,boolean)
instead.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
- true
if the dependency is optional, false
if it is mandatorypublic static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, String name, boolean optional)
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
- true
if the dependency is optional, false
if it is mandatoryCopyright © 2022 JBoss by Red Hat. All rights reserved.