org.apache.cayenne.di

## Interface ClassLoaderManager

- All Known Implementing Classes:
    DefaultClassLoaderManager

      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.
  Since:
    4.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ClassLoader` | `getClassLoader(String resourceName)` Returns a ClassLoader appropriate for loading a given resource.

- - ### 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.

Copyright © 2001–2021 Apache Cayenne. All rights reserved.