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()
|
| 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(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(BundleContext bundleContext,
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 FuseSource, Corp.. All Rights Reserved.