org.apache.karaf.shell.dev
Class AbstractBundleCommand
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.apache.karaf.shell.console.OsgiCommandSupport
org.apache.karaf.shell.dev.AbstractBundleCommand
- All Implemented Interfaces:
- Action, BundleContextAware
- Direct Known Subclasses:
- DynamicImport, ShowBundleTree
public abstract class AbstractBundleCommand
- extends OsgiCommandSupport
Base class for a dev: command that takes a bundle id as an argument
It also provides convient access to the PackageAdmin service
Method Summary |
protected java.lang.Object |
doExecute()
|
protected abstract void |
doExecute(org.osgi.framework.Bundle bundle)
|
protected org.osgi.service.packageadmin.PackageAdmin |
getPackageAdmin()
|
protected java.util.Map<java.lang.String,org.osgi.framework.Bundle> |
getWiredBundles(org.osgi.framework.Bundle bundle)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBundleCommand
public AbstractBundleCommand()
doExecute
protected java.lang.Object doExecute()
throws Exception
- Specified by:
doExecute
in class AbstractAction
- Throws:
Exception
doExecute
protected abstract void doExecute(org.osgi.framework.Bundle bundle)
throws Exception
- Throws:
Exception
getWiredBundles
protected java.util.Map<java.lang.String,org.osgi.framework.Bundle> getWiredBundles(org.osgi.framework.Bundle bundle)
getPackageAdmin
protected org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.