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 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 voidcheckModuleAliasesForExclusions(List<org.jboss.modules.ModuleIdentifier> identifiers, 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.
-
-
-
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
public static void checkModuleAliasesForExclusions(List<org.jboss.modules.ModuleIdentifier> identifiers, 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:
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.
-
-