We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { if (LOG.isDebugEnabled()) { LOG.debug("==> RangerPluginClassLoader.loadClass(" + name + ")" ); } Class<?> ret = null; try { // first we try to load a class inside the child classloader if (LOG.isDebugEnabled()) { LOG.debug("RangerPluginClassLoader.loadClass(" + name + "): calling childClassLoader.findClass()"); } ret = super.loadClass(name); } catch(Throwable e) { // Use the Component ClassLoader loadClass to load when childClassLoader fails to find if (LOG.isDebugEnabled()) { LOG.debug("RangerPluginClassLoader.loadClass(" + name + "): calling componentClassLoader.loadClass()"); } MyClassLoader savedClassLoader = getComponentClassLoader(); if(savedClassLoader != null) { ret = savedClassLoader.loadClass(name); } } if(LOG.isDebugEnabled()) { LOG.debug("<== RangerPluginClassLoader.loadClass(" + name + "): " + ret); } return ret; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: