Package org.jruby.embed.osgi.utils
Class OSGiBundleClassLoaderHelper
java.lang.Object
org.jruby.embed.osgi.utils.OSGiBundleClassLoaderHelper
Various introspection tricks to access the file system from OSGi.
Tested for felix and equinox.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoadergetBundleClassLoader(org.osgi.framework.Bundle bundle) Assuming the bundle is started.private static voidinit(org.osgi.framework.Bundle bundle) private static ClassLoaderinternalGetEquinoxBundleClassLoader(org.osgi.framework.Bundle bundle) private static ClassLoaderinternalGetFelixBundleClassLoader(org.osgi.framework.Bundle bundle)
-
Field Details
-
identifiedOsgiImpl
private static boolean identifiedOsgiImpl -
isEquinox
private static boolean isEquinox -
isFelix
private static boolean isFelix -
Equinox_BundleHost_getBundleLoader_method
-
Equinox_BundleLoader_createClassLoader_method
-
Felix_BundleImpl_m_modules_field
-
Felix_ModuleImpl_m_classLoader_field
-
-
Constructor Details
-
OSGiBundleClassLoaderHelper
public OSGiBundleClassLoaderHelper()
-
-
Method Details
-
init
private static void init(org.osgi.framework.Bundle bundle) -
getBundleClassLoader
Assuming the bundle is started.- Parameters:
bundle-- Returns:
- classloader object
-
internalGetEquinoxBundleClassLoader
-
internalGetFelixBundleClassLoader
-