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
-
-
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)Construct a new instance.ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified)Construct a new instance.ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete 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)List<FilterSpecification>getExportFilters()org.jboss.modules.ModuleIdentifiergetIdentifier()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-userSpecified-trueif this dependency was specified by the user,falseif it was automatically added
-
ModuleDependency
public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, String identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)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-userSpecified-trueif this dependency was specified by the user,falseif it was automatically addedreason- reason for adding implicit module dependency
-
ModuleDependency
public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier 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-userSpecified-trueif this dependency was specified by the user,falseif it was automatically added
-
ModuleDependency
public ModuleDependency(org.jboss.modules.ModuleLoader moduleLoader, org.jboss.modules.ModuleIdentifier identifier, boolean optional, boolean export, boolean importServices, boolean userSpecified, String reason)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-userSpecified-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
public org.jboss.modules.ModuleIdentifier getIdentifier()
-
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()
-
-