Class ModuleDependency
- java.lang.Object
-
- org.jboss.as.server.deployment.module.ModuleDependency
-
- All Implemented Interfaces:
Serializable
public final class ModuleDependency extends Object implements Serializable
- Author:
- John E. Bailey, David M. Lloyd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleDependency.Builder
-
Constructor Summary
Constructors Constructor Description ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified)Construct a new instance.ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)Deprecated, for removal: This API element is subject to removal in a future version.Use aModuleDependency.BuilderModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified)Deprecated, for removal: This API element is subject to removal in a future version.ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)Deprecated, for removal: This API element is subject to removal in a future version.Use aModuleDependency.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddExportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include)voidaddImportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include)booleanequals(Object o)StringgetDependencyModule()Gets the name of the module upon which there is a dependency.List<FilterSpecification>getExportFilters()org.jboss.modules.ModuleIdentifiergetIdentifier()Deprecated, for removal: This API element is subject to removal in a future version.List<FilterSpecification>getImportFilters()org.jboss.modules.ModuleLoadergetModuleLoader()Optional<String>getReason()inthashCode()booleanisExport()booleanisImportServices()booleanisOptional()booleanisUserSpecified()StringtoString()
-
-
-
Constructor Detail
-
ModuleDependency
public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified)Construct a new instance.- Parameters:
moduleLoader- the module loader of the dependency (ifnull, then use the default server module loader)identifier- the module identifieroptional-trueif this is an optional dependencyexport-trueif resources should be exported by defaultimportServices-trueif the dependent module should be able to load services from the dependencyuserSpecified-trueif this dependency was specified by the user,falseif it was automatically added
-
ModuleDependency
@Deprecated(forRemoval=true) public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)
Deprecated, for removal: This API element is subject to removal in a future version.Use aModuleDependency.BuilderConstruct a new instance.- Parameters:
moduleLoader- the module loader of the dependency (ifnull, then use the default server module loader)identifier- the module identifieroptional-trueif this is an optional dependencyexport-trueif resources should be exported by defaultimportServices-trueif the dependent module should be able to load services from the dependencyuserSpecified-trueif this dependency was specified by the user,falseif it was automatically addedreason- reason for adding implicit module dependency
-
ModuleDependency
@Deprecated(forRemoval=true) public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified)
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance.- Parameters:
moduleLoader- the module loader of the dependency (ifnull, then use the default server module loader)identifier- the module identifieroptional-trueif this is an optional dependencyexport-trueif resources should be exported by defaultimportServices-trueif the dependent module should be able to load services from the dependencyuserSpecified-trueif this dependency was specified by the user,falseif it was automatically added
-
ModuleDependency
@Deprecated(forRemoval=true) public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)
Deprecated, for removal: This API element is subject to removal in a future version.Use aModuleDependency.BuilderConstruct a new instance.- Parameters:
moduleLoader- the module loader of the dependency (ifnull, then use the default server module loader)identifier- the module identifieroptional-trueif this is an optional dependencyexport-trueif resources should be exported by defaultimportServices-trueif the dependent module should be able to load services from the dependencyuserSpecified-trueif this dependency was specified by the user,falseif it was automatically addedreason- reason for adding implicit module dependency
-
-
Method Detail
-
getModuleLoader
public org.jboss.modules.ModuleLoader getModuleLoader()
-
getIdentifier
@Deprecated(forRemoval=true) public org.jboss.modules.ModuleIdentifier getIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getDependencyModule
public String getDependencyModule()
Gets the name of the module upon which there is a dependency.- Returns:
- the
canonical formof the name of module
-
isOptional
public boolean isOptional()
-
isExport
public boolean isExport()
-
isUserSpecified
public boolean isUserSpecified()
-
addImportFilter
public void addImportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include)
-
getImportFilters
public List<FilterSpecification> getImportFilters()
-
addExportFilter
public void addExportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include)
-
getExportFilters
public List<FilterSpecification> getExportFilters()
-
isImportServices
public boolean isImportServices()
-
-