org.apache.karaf.shell.osgi
Class Util
java.lang.Object
org.apache.karaf.shell.osgi.Util
public class Util
- extends java.lang.Object
Constructor Summary |
Util()
|
Method Summary |
static boolean |
accessToSystemBundleIsAllowed(long bundleId,
org.apache.felix.service.command.CommandSession session)
Ask the user to confirm the access to a system bundle |
static java.lang.String |
getBundleName(org.osgi.framework.Bundle bundle)
|
static java.lang.String |
getUnderlineString(java.lang.String s)
|
static java.lang.String |
getValueString(java.lang.Object obj)
|
static boolean |
isASystemBundle(org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle bundle)
Check if a bundle is a system bundle (start level < 50) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getBundleName
public static java.lang.String getBundleName(org.osgi.framework.Bundle bundle)
getUnderlineString
public static java.lang.String getUnderlineString(java.lang.String s)
getValueString
public static java.lang.String getValueString(java.lang.Object obj)
isASystemBundle
public static boolean isASystemBundle(org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle bundle)
- Check if a bundle is a system bundle (start level < 50)
- Parameters:
bundleContext
- bundle
-
- Returns:
- true if the bundle has start level minor than 50
accessToSystemBundleIsAllowed
public static boolean accessToSystemBundleIsAllowed(long bundleId,
org.apache.felix.service.command.CommandSession session)
throws java.io.IOException
- Ask the user to confirm the access to a system bundle
- Parameters:
bundleId
- session
-
- Returns:
- true if the user confirm
- Throws:
java.io.IOException
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.