Class ModuleAliasChecker
java.lang.Object
org.jboss.as.server.deployment.module.ModuleAliasChecker
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
ModuleAliasChecker
public ModuleAliasChecker()
-
-
Method Details
-
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.
-
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.
-