public class OsgiUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.Bundle |
getBundleOrNull(Class cls) |
static String |
getBundleSymbolicName(org.osgi.framework.Bundle bundle) |
static String |
getVersion(org.osgi.framework.Bundle bundle) |
static Class |
loadClass(ClassLoader loader,
String className) |
static String |
systemOrContextProperty(org.osgi.framework.BundleContext context,
String property)
Returns a value from system property or context property (if system property is not specified).
|
public static String getBundleSymbolicName(org.osgi.framework.Bundle bundle)
public static String getVersion(org.osgi.framework.Bundle bundle)
public static Class loadClass(ClassLoader loader, String className) throws ClassNotFoundException
ClassNotFoundExceptionpublic static org.osgi.framework.Bundle getBundleOrNull(Class cls) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
Copyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.