public interface ClassLoaderLocator
ClassLoader
The primary use of this interface is in the JBoss Application Server,
which needs to inject a module class loader for custom login modules etcModifier and Type | Method and Description |
---|---|
default ClassLoader |
get(List<String> modules)
Given a list of module names, return a
ClassLoader that combines all module loaders. |
ClassLoader |
get(String module)
Given a module name, return a
ClassLoader |
ClassLoader get(String module)
ClassLoader
module
- the name of the module for which we want a ClassLoader
.ClassLoader
.default ClassLoader get(List<String> modules)
ClassLoader
that combines all module loaders. This method was made
default to ensure API compatibility in WildFly. Implementations that are meant to provide support for multiple modules
must override this default method implementation, which uses only the first module found in the list.modules
- the set of modules for which we want a ClassLoader
.ClassLoader
Copyright © 2017 JBoss by Red Hat. All rights reserved.