public final class BundleUtils extends Object
Bundles.| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
getClassLoader(org.osgi.framework.Bundle bundle)
Gets the
ClassLoader of the specified OSGi Bundle. |
static Class<?> |
loadClass(org.osgi.framework.Bundle bundle,
String className)
Loads a class by name from an OSGi
Bundle. |
public static Class<?> loadClass(org.osgi.framework.Bundle bundle, String className) throws ClassNotFoundException
Bundle.bundle - the bundle to load the class fromclassName - the fully qualified class nameClassNotFoundExceptionpublic static ClassLoader getClassLoader(org.osgi.framework.Bundle bundle)
ClassLoader of the specified OSGi Bundle.bundle - the bundleCopyright © 2012–2019 Drombler. All rights reserved.