Class ModuleAliasChecker
- java.lang.Object
-
- org.jboss.as.server.deployment.module.ModuleAliasChecker
-
public class ModuleAliasChecker extends Object
An internal utility class to do common tasks related to check module alias when they are supplied as deployment dependencies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleAliasChecker.MessageContext
-
Constructor Summary
Constructors Constructor Description ModuleAliasChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcheckModuleAliasesForDependencies(List<ModuleDependency> dependencies, ModuleAliasChecker.MessageContext context, String deploymentName)Check whether the identifier passed as an argument represents an Alias and if so, log a warning describing that the alias can be replaced with its target module.static voidcheckModuleAliasesForExclusion(String identifier, ModuleAliasChecker.MessageContext context, String deploymentName)Check whether the module identifier passed as an argument represents an exclusion Alias and if so, log a warning describing that the alias can be replaced with its target module.static voidcheckModuleAliasesForExclusions(List<org.jboss.modules.ModuleIdentifier> identifiers, ModuleAliasChecker.MessageContext context, String deploymentName)Deprecated, for removal: This API element is subject to removal in a future version.Iterate over all the identifiers and callcheckModuleAliasesForExclusion(String, MessageContext, String)
-
-
-
Method Detail
-
checkModuleAliasesForDependencies
public static void checkModuleAliasesForDependencies(List<ModuleDependency> dependencies, ModuleAliasChecker.MessageContext context, String deploymentName)
Check whether the identifier passed as an argument represents an Alias and if so, log a warning describing that the alias can be replaced with its target module.- Parameters:
dependencies- List of module dependencies we want to verify.context- The context to use in the log message to give more information about from where this module identifier has been requested. Possible values are "jboss-deployment-structure" or "manifest"deploymentName- Deployment name where the dependencies are meant to be.
-
checkModuleAliasesForExclusions
@Deprecated(forRemoval=true, since="28.0.0") public static void checkModuleAliasesForExclusions(List<org.jboss.modules.ModuleIdentifier> identifiers, ModuleAliasChecker.MessageContext context, String deploymentName)
Deprecated, for removal: This API element is subject to removal in a future version.Iterate over all the identifiers and callcheckModuleAliasesForExclusion(String, MessageContext, String)Check whether the identifier passed as an argument represents an Alias and if so, log a warning describing that the alias can be replaced with its target module.- Parameters:
identifiers- List of identifiers we want to verify.context- The context to use in the log message to give more information about from where this module identifier hasdeploymentName- Deployment name where the dependencies are meant to be.
-
checkModuleAliasesForExclusion
public static void checkModuleAliasesForExclusion(String identifier, ModuleAliasChecker.MessageContext context, String deploymentName)
Check whether the module identifier passed as an argument represents an exclusion Alias and if so, log a warning describing that the alias can be replaced with its target module.- Parameters:
identifier- The module identifier we want to verify.context- The context to use in the log message to give more information about from where this module identifier hasdeploymentName- Deployment name where the dependencies are meant to be.
-
-