org.jboss.modules
Class DependencySpec

java.lang.Object
  extended by org.jboss.modules.DependencySpec

public abstract class DependencySpec
extends Object

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

Method Summary
static DependencySpec createLocalDependencySpec()
          Create a dependency on the current module's local resources.
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 createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter)
          Create a dependency on the current module's local resources.
static DependencySpec createLocalDependencySpec(PathFilter importFilter, PathFilter exportFilter, LocalLoader localLoader, Set<String> loaderPaths)
          Create a dependency on the given local loader.
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 createModuleDependencySpec(ModuleIdentifier identifier)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier, boolean export, boolean optional)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export, boolean optional)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleIdentifier identifier, boolean optional)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)
          Create a dependency on the given module.
static DependencySpec createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, 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)
          Create a dependency on the given module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLocalDependencySpec

public static DependencySpec 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.

Returns:
the dependency spec

createLocalDependencySpec

public static DependencySpec createLocalDependencySpec(PathFilter importFilter,
                                                       PathFilter exportFilter)
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 apply
exportFilter - the export filter to apply
Returns:
the dependency spec

createLocalDependencySpec

public 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. You should have at least one such dependency on any module which has its own resources.

Parameters:
importFilter - the import filter to apply
exportFilter - the export filter to apply
resourceImportFilter - the resource import filter to apply
resourceExportFilter - the resource export filter to apply
classImportFilter - the class import filter to apply
classExportFilter - the class export filter to apply
Returns:
the dependency spec

createLocalDependencySpec

public static DependencySpec createLocalDependencySpec(LocalLoader localLoader,
                                                       Set<String> loaderPaths)
Create a dependency on the given local loader.

Parameters:
localLoader - the local loader
loaderPaths - the set of paths that is exposed by the local loader
Returns:
the dependency spec

createLocalDependencySpec

public static DependencySpec createLocalDependencySpec(LocalLoader localLoader,
                                                       Set<String> loaderPaths,
                                                       boolean export)
Create a dependency on the given local loader.

Parameters:
localLoader - the local loader
loaderPaths - the set of paths that is exposed by the local loader
export - true if this is a fully re-exported dependency, false if it should not be exported
Returns:
the dependency spec

createLocalDependencySpec

public static DependencySpec createLocalDependencySpec(PathFilter importFilter,
                                                       PathFilter exportFilter,
                                                       LocalLoader localLoader,
                                                       Set<String> loaderPaths)
Create a dependency on the given local loader.

Parameters:
importFilter - the import filter to apply
exportFilter - the export filter to apply
localLoader - the local loader
loaderPaths - the set of paths that is exposed by the local loader
Returns:
the dependency spec

createLocalDependencySpec

public 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.

Parameters:
importFilter - the import filter to apply
exportFilter - the export filter to apply
resourceImportFilter - the resource import filter to apply
resourceExportFilter - the resource export filter to apply
classImportFilter - the class import filter to apply
classExportFilter - the class export filter to apply
localLoader - the local loader
loaderPaths - the set of paths that is exposed by the local loader
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier)
Create a dependency on the given module.

Parameters:
identifier - the module identifier
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier,
                                                        boolean export)
Create a dependency on the given module.

Parameters:
identifier - the module identifier
export - true if the dependency should be exported by default
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(ModuleIdentifier identifier,
                                                        boolean export,
                                                        boolean optional)
Create a dependency on the given module.

Parameters:
identifier - the module identifier
export - true if this is a fully re-exported dependency, false if it should not be exported
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader,
                                                        ModuleIdentifier identifier,
                                                        boolean export)
Create a dependency on the given module.

Parameters:
moduleLoader - the specific module loader from which the module should be acquired
identifier - the module identifier
export - true if this is a fully re-exported dependency, false if it should not be exported
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(ModuleLoader moduleLoader,
                                                        ModuleIdentifier identifier,
                                                        boolean export,
                                                        boolean optional)
Create a dependency on the given module.

Parameters:
moduleLoader - the specific module loader from which the module should be acquired
identifier - the module identifier
export - true if this is a fully re-exported dependency, false if it should not be exported
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(PathFilter exportFilter,
                                                        ModuleIdentifier identifier,
                                                        boolean optional)
Create a dependency on the given module.

Parameters:
exportFilter - the export filter to apply
identifier - the module identifier
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(PathFilter exportFilter,
                                                        ModuleLoader moduleLoader,
                                                        ModuleIdentifier identifier,
                                                        boolean optional)
Create a dependency on the given module.

Parameters:
exportFilter - the export filter to apply
moduleLoader - the specific module loader from which the module should be acquired
identifier - the module identifier
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec

createModuleDependencySpec

public static DependencySpec createModuleDependencySpec(PathFilter importFilter,
                                                        PathFilter exportFilter,
                                                        ModuleLoader moduleLoader,
                                                        ModuleIdentifier identifier,
                                                        boolean optional)
Create a dependency on the given module.

Parameters:
importFilter - the import filter to apply
exportFilter - the export filter to apply
moduleLoader - the specific module loader from which the module should be acquired
identifier - the module identifier
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec

createModuleDependencySpec

public static 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.

Parameters:
importFilter - the import filter to apply
exportFilter - the export filter to apply
resourceImportFilter - the resource import filter to apply
resourceExportFilter - the resource export filter to apply
classImportFilter - the class import filter to apply
classExportFilter - the class export filter to apply
moduleLoader - the specific module loader from which the module should be acquired
identifier - the module identifier
optional - true if the dependency is optional, false if it is mandatory
Returns:
the dependency spec


Copyright © 2011. All Rights Reserved.