Package 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
Modifier and TypeMethodDescriptiongetClassLoader
(String resourceName) Returns a ClassLoader appropriate for loading a given resource.
-
Method Details
-
getClassLoader
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.
-