Class 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.
    • Constructor Detail

      • ModuleAliasChecker

        public ModuleAliasChecker()
    • 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 has
        deploymentName - Deployment name where the dependencies are meant to be.