public class OSGiBundleClassLoaderHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.reflect.Method |
Equinox_BundleHost_getBundleLoader_method |
private static java.lang.reflect.Method |
Equinox_BundleLoader_createClassLoader_method |
private static java.lang.reflect.Field |
Felix_BundleImpl_m_modules_field |
private static java.lang.reflect.Field |
Felix_ModuleImpl_m_classLoader_field |
private static boolean |
identifiedOsgiImpl |
private static boolean |
isEquinox |
private static boolean |
isFelix |
| Constructor and Description |
|---|
OSGiBundleClassLoaderHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.ClassLoader |
getBundleClassLoader(org.osgi.framework.Bundle bundle)
Assuming the bundle is started.
|
private static void |
init(org.osgi.framework.Bundle bundle) |
private static java.lang.ClassLoader |
internalGetEquinoxBundleClassLoader(org.osgi.framework.Bundle bundle) |
private static java.lang.ClassLoader |
internalGetFelixBundleClassLoader(org.osgi.framework.Bundle bundle) |
private static boolean identifiedOsgiImpl
private static boolean isEquinox
private static boolean isFelix
private static java.lang.reflect.Method Equinox_BundleHost_getBundleLoader_method
private static java.lang.reflect.Method Equinox_BundleLoader_createClassLoader_method
private static java.lang.reflect.Field Felix_BundleImpl_m_modules_field
private static java.lang.reflect.Field Felix_ModuleImpl_m_classLoader_field
private static void init(org.osgi.framework.Bundle bundle)
public static java.lang.ClassLoader getBundleClassLoader(org.osgi.framework.Bundle bundle)
bundle - private static java.lang.ClassLoader internalGetEquinoxBundleClassLoader(org.osgi.framework.Bundle bundle)
private static java.lang.ClassLoader internalGetFelixBundleClassLoader(org.osgi.framework.Bundle bundle)