com.atlassian.templaterenderer
Class BundleClassLoaderAccessor
java.lang.Object
com.atlassian.templaterenderer.BundleClassLoaderAccessor
public class BundleClassLoaderAccessor
- extends Object
Utility methods for accessing a bundle as if it was a classloader. Copied from atlassian-plugins-osgi, as
this class is package private there. If we are ever given access (currently not) to the class loader that comes
from the OsgiPluginHelper, this can probably be got rid of.
The returned ClassLoader will have a null parent so we don't leak classes from main ClassLoader.
See https://studio.atlassian.com/browse/ATR-27
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleClassLoaderAccessor
public BundleClassLoaderAccessor()
getClassLoader
public static ClassLoader getClassLoader(org.osgi.framework.Bundle bundle)
Copyright © 2012 Atlassian. All Rights Reserved.