Package org.wildfly.security.auth.client
Class ModuleLoader
- java.lang.Object
-
- org.wildfly.security.auth.client.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 Summary
Constructors Constructor Description ModuleLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ClassLoadergetClassLoaderFromModule(XMLStreamReader reader, String moduleName)Returns the class loader of the given module or throws aConfigXMLParseExceptionif the module can not be loaded.
-
-
-
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 aConfigXMLParseExceptionif the module can not be loaded.- Parameters:
moduleName- the name of the module (can not benull- Returns:
- the class loader of the module
- Throws:
org.wildfly.client.config.ConfigXMLParseException- if the module can not be loaded
-
-