Interface ClassLoaderManager

  • All Known Implementing Classes:

    public interface ClassLoaderManager
    Maps ClassLoaders to resources. This is a useful abstraction when switching between environments. E.g. between JEE with thread/hierarchical classloaders and OSGi with per-bundle classloaders.
    • Method Detail

      • getClassLoader

        ClassLoader getClassLoader​(String resourceName)
        Returns a ClassLoader appropriate for loading a given resource. Resource path should be compatible with Class.getResource(..) and such, i.e. the path component separator should be slash, not dot.