Top Description Fields Constructors Methods
org.jruby.embed.osgi.utils

public Class OSGiBundleClassLoaderHelper

extends Object
Class Inheritance
Imports
java.lang.reflect.Field, .Method, org.osgi.framework.Bundle

Various introspection tricks to access the file system from OSGi. Tested for felix and equinox.
Author
hmalphettes

Field Summary

Modifier and TypeField and Description
private static Method
private static Method
private static Field
private static Field
private static boolean
private static boolean
private static boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ClassLoader

Returns:

classloader object
getBundleClassLoader
(Bundle bundle)

Assuming the bundle is started.

private static void
init(Bundle bundle)

private static ClassLoader
private static ClassLoader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Equinox_BundleHost_getBundleLoader_methodback to summary
private static Method Equinox_BundleHost_getBundleLoader_method
Equinox_BundleLoader_createClassLoader_methodback to summary
private static Method Equinox_BundleLoader_createClassLoader_method
Felix_BundleImpl_m_modules_fieldback to summary
private static Field Felix_BundleImpl_m_modules_field
Felix_ModuleImpl_m_classLoader_fieldback to summary
private static Field Felix_ModuleImpl_m_classLoader_field
identifiedOsgiImplback to summary
private static boolean identifiedOsgiImpl
isEquinoxback to summary
private static boolean isEquinox
isFelixback to summary
private static boolean isFelix

Constructor Detail

OSGiBundleClassLoaderHelperback to summary
public OSGiBundleClassLoaderHelper()

Method Detail

getBundleClassLoaderback to summary
public static ClassLoader getBundleClassLoader(Bundle bundle)

Assuming the bundle is started.

Returns:ClassLoader

classloader object

initback to summary
private static void init(Bundle bundle)
internalGetEquinoxBundleClassLoaderback to summary
private static ClassLoader internalGetEquinoxBundleClassLoader(Bundle bundle)
internalGetFelixBundleClassLoaderback to summary
private static ClassLoader internalGetFelixBundleClassLoader(Bundle bundle)