Class ModuleLoader


  • class ModuleLoader
    extends Object
    Utility class to load a module. JBoss Modules is an optional dependency of Elytron. This class will only be loaded and used when Elytron actually requires the presence of JBoss Modules.
    Author:
    Jeff Mesnil (c) 2017 Red Hat inc.
    • Constructor Detail

      • ModuleLoader

        ModuleLoader()
    • Method Detail

      • getClassLoaderFromModule

        static ClassLoader getClassLoaderFromModule​(@Param
                                                    XMLStreamReader reader,
                                                    String moduleName)
                                             throws org.wildfly.client.config.ConfigXMLParseException
        Returns the class loader of the given module or throws a ConfigXMLParseException if the module can not be loaded.
        Parameters:
        moduleName - the name of the module (can not be null
        Returns:
        the class loader of the module
        Throws:
        org.wildfly.client.config.ConfigXMLParseException - if the module can not be loaded