Class ModuleDependency
java.lang.Object
org.jboss.as.server.deployment.module.ModuleDependency
- All Implemented Interfaces:
Serializable
- Author:
- John E. Bailey, David M. Lloyd
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String 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, 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
Modifier and TypeMethodDescriptionvoidaddExportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include) voidaddImportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include) booleanGets the name of the module upon which there is a dependency.org.jboss.modules.ModuleIdentifierDeprecated, for removal: This API element is subject to removal in a future version.org.jboss.modules.ModuleLoaderinthashCode()booleanisExport()booleanbooleanbooleantoString()
-
Constructor Details
-
ModuleDependency
@Deprecated(forRemoval=true) public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified) 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 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 Details
-
toString
-
getModuleLoader
public org.jboss.modules.ModuleLoader getModuleLoader() -
getIdentifier
Deprecated, for removal: This API element is subject to removal in a future version. -
getDependencyModule
Gets the name of the module upon which there is a dependency.- Returns:
- the
canonical formof the name of module
-
getReason
-
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
-
addExportFilter
public void addExportFilter(org.jboss.modules.filter.PathFilter pathFilter, boolean include) -
getExportFilters
-
isImportServices
public boolean isImportServices() -
equals
-
hashCode
public int hashCode()
-
ModuleDependency.Builder