Class OsgiUtil
- java.lang.Object
-
- org.ops4j.pax.logging.spi.support.OsgiUtil
-
public class OsgiUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.osgi.framework.BundlegetBundleOrNull(Class cls)static StringgetBundleSymbolicName(org.osgi.framework.Bundle bundle)static StringgetVersion(org.osgi.framework.Bundle bundle)static ClassloadClass(ClassLoader loader, String className)static StringsystemOrContextProperty(org.osgi.framework.BundleContext context, String property)Returns a value from system property or context property (if system property is not specified).
-
-
-
Method Detail
-
getBundleSymbolicName
public static String getBundleSymbolicName(org.osgi.framework.Bundle bundle)
-
getVersion
public static String getVersion(org.osgi.framework.Bundle bundle)
-
loadClass
public static Class loadClass(ClassLoader loader, String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getBundleOrNull
public static org.osgi.framework.Bundle getBundleOrNull(Class cls) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
-