Package org.jboss.security.plugins
Interface ClassLoaderLocator
-
public interface ClassLoaderLocator
An interface to locate aClassLoader
The primary use of this interface is in the JBoss Application Server, which needs to inject a module class loader for custom login modules etc- Since:
- Nov 14, 2011
- Author:
- Anil Saldhana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClassLoader
get(String module)
Given a module name, return aClassLoader
default ClassLoader
get(List<String> modules)
Given a list of module names, return aClassLoader
that combines all module loaders.
-
-
-
Method Detail
-
get
ClassLoader get(String module)
Given a module name, return aClassLoader
- Parameters:
module
- the name of the module for which we want aClassLoader
.- Returns:
- the module
ClassLoader
.
-
get
default ClassLoader get(List<String> modules)
Given a list of module names, return aClassLoader
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.- Parameters:
modules
- the set of modules for which we want aClassLoader
.- Returns:
- the combined
ClassLoader
-
-