com.atlassian.templaterenderer
Class BundleClassLoaderAccessor

java.lang.Object
  extended by 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


Constructor Summary
BundleClassLoaderAccessor()
           
 
Method Summary
static ClassLoader getClassLoader(org.osgi.framework.Bundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleClassLoaderAccessor

public BundleClassLoaderAccessor()
Method Detail

getClassLoader

public static ClassLoader getClassLoader(org.osgi.framework.Bundle bundle)


Copyright © 2012 Atlassian. All Rights Reserved.