You can use your own class loader (almost) as of ot was the system class loader from the 2.1.0 version. What JHCR expects for your custom class loader:
- Your custom class loader is expected to extend the
java.lang.ClassLoaderclass.
- Your custom class loader is expected to have a constructor with one ClassLoader argument to pass the parent.
- Your custom class loader is expected to override the
loadClass(String, boolean)method.
Any other class loaders:
-
Other custom class loaders are expected to extend either
java.lang.ClassLoaderorjava.net.URLClassLoader. -
Other custom class loaders are expected to override the
loadClass(String, boolean)method.