Top Description Fields Constructors Methods
org.jboss.modules

public abstract Class DependencySpec

extends Object
Class Inheritance
Known Direct Subclasses
org.jboss.modules.ModuleClassLoaderDependencySpec, org.jboss.modules.ModuleDependencySpec, org.jboss.modules.LocalDependencySpec
Imports
java.util.Set, org.jboss.modules.filter.ClassFilter, .ClassFilters, .PathFilter, .PathFilters

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.
Authors
David M. Lloyd, John Bailey, Jason T. Greene

Field Summary

Modifier and TypeField and Description
pack-priv final ClassFilter
pack-priv final ClassFilter
pack-priv final PathFilter
pack-priv final PathFilter
pack-priv static final DependencySpec[]
public static final DependencySpec
OWN_DEPENDENCY

A constant dependency which always represents a module's own content.

pack-priv final PathFilter
pack-priv final PathFilter

Constructor Summary

AccessConstructor and Description
pack-priv
DependencySpec(final PathFilter importFilter, final PathFilter exportFilter, final PathFilter resourceImportFilter, final PathFilter resourceExportFilter, final ClassFilter classImportFilter, final ClassFilter classExportFilter)

Method Summary

Modifier and TypeMethod and Description
public static DependencySpec

Returns:

the dependency spec
createClassLoaderDependencySpec
(final ClassLoader
the class loader
classLoader
,
final Set<String>
the set of paths to use from this class loader
loaderPaths
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given class loader.
public static DependencySpec

Returns:

the dependency spec
createClassLoaderDependencySpec
(final ClassLoader
the class loader
classLoader
,
final Set<String>
the set of paths to use from this class loader
loaderPaths
,
boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given class loader.
public static DependencySpec

Returns:

the dependency spec
createClassLoaderDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final ClassLoader
the class loader
classLoader
,
final Set<String>
the set of paths to use from this class loader
loaderPaths
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given class loader.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
()

Create a dependency on the current module's local resources.

public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the current module's local resources.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final PathFilter
the resource import filter to apply
resourceImportFilter
,
final PathFilter
the resource export filter to apply
resourceExportFilter
,
final ClassFilter
the class import filter to apply
classImportFilter
,
final ClassFilter
the class export filter to apply
classExportFilter
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the current module's local resources.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final LocalLoader
the local loader
localLoader
,
final Set<String>
the set of paths that is exposed by the local loader
loaderPaths
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given local loader.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final LocalLoader
the local loader
localLoader
,
final Set<String>
the set of paths that is exposed by the local loader
loaderPaths
,
boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given local loader.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final LocalLoader
the local loader
localLoader
,
final Set<String>
the set of paths that is exposed by the local loader
loaderPaths
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given local loader.
public static DependencySpec

Returns:

the dependency spec
createLocalDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final PathFilter
the resource import filter to apply
resourceImportFilter
,
final PathFilter
the resource export filter to apply
resourceExportFilter
,
final ClassFilter
the class import filter to apply
classImportFilter
,
final ClassFilter
the class export filter to apply
classExportFilter
,
final LocalLoader
the local loader
localLoader
,
final Set<String>
the set of paths that is exposed by the local loader
loaderPaths
)

Deprecated Use LocalDependencySpecBuilder instead.
Create a dependency on the given local loader.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleIdentifier
the module identifier
identifier
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final String
the module name
name
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if the dependency should be exported by default
export
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final String
the module name
name
,
final boolean
true if the dependency should be exported by default
export
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final String
the module name
name
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final String
the module name
name
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final String
the module name
name
,
final boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the export filter to apply
exportFilter
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the export filter to apply
exportFilter
,
final String
the module name
name
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the export filter to apply
exportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the export filter to apply
exportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final String
the module name
name
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final String
the module name
name
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final PathFilter
the resource import filter to apply
resourceImportFilter
,
final PathFilter
the resource export filter to apply
resourceExportFilter
,
final ClassFilter
the class import filter to apply
classImportFilter
,
final ClassFilter
the class export filter to apply
classExportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final ModuleIdentifier
the module identifier
identifier
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createModuleDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final PathFilter
the resource import filter to apply
resourceImportFilter
,
final PathFilter
the resource export filter to apply
resourceExportFilter
,
final ClassFilter
the class import filter to apply
classImportFilter
,
final ClassFilter
the class export filter to apply
classExportFilter
,
final ModuleLoader
the specific module loader from which the module should be acquired
moduleLoader
,
final String
the module name
name
,
final boolean
true if the dependency is optional, false if it is mandatory
optional
)

Deprecated Use ModuleDependencySpecBuilder instead.
Create a dependency on the given module.
public static DependencySpec

Returns:

the dependency spec
createSystemDependencySpec
(final Set<String>
the set of paths to use from the system class loader
loaderPaths
)

Create a system dependency.

public static DependencySpec

Returns:

the dependency spec
createSystemDependencySpec
(final Set<String>
the set of paths to use from the system class loader
loaderPaths
,
boolean
true if this is a fully re-exported dependency, false if it should not be exported
export
)

Create a system dependency.

public static DependencySpec

Returns:

the dependency spec
createSystemDependencySpec
(final PathFilter
the import filter to apply
importFilter
,
final PathFilter
the export filter to apply
exportFilter
,
final Set<String>
the set of paths to use from the system class loader
loaderPaths
)

Create a system dependency.

public ClassFilter

Returns:

the class export filter
getClassExportFilter
()

Get the dependency class export filter.

public ClassFilter

Returns:

the class import filter
getClassImportFilter
()

Get the dependency class import filter.

pack-priv abstract Dependency
getDependency(final Module module)

public PathFilter

Returns:

the export filter
getExportFilter
()

Get the dependency export filter.

public PathFilter

Returns:

the import filter
getImportFilter
()

Get the dependency import filter.

public PathFilter

Returns:

the export filter
getResourceExportFilter
()

Get the dependency resource export filter.

public PathFilter

Returns:

the import filter
getResourceImportFilter
()

Get the dependency resource import filter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait