Interface ClassLoaderLocator


  • public interface ClassLoaderLocator
    An interface to locate a 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 etc
    Since:
    Nov 14, 2011
    Author:
    Anil Saldhana
    • Method Detail

      • get

        default ClassLoader get​(List<String> modules)
        Given a list of module names, return a 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.
        Parameters:
        modules - the set of modules for which we want a ClassLoader.
        Returns:
        the combined ClassLoader