org.apache.karaf.shell.console
Class OsgiCommandSupport
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.apache.karaf.shell.console.OsgiCommandSupport
- All Implemented Interfaces:
- Action, BundleContextAware
public abstract class OsgiCommandSupport
- extends AbstractAction
- implements Action, BundleContextAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundleContext
protected org.osgi.framework.BundleContext bundleContext
usedReferences
protected List<org.osgi.framework.ServiceReference> usedReferences
OsgiCommandSupport
public OsgiCommandSupport()
execute
public Object execute(org.apache.felix.service.command.CommandSession session)
throws Exception
- Specified by:
execute in interface Action- Overrides:
execute in class AbstractAction
- Throws:
Exception
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
- Specified by:
setBundleContext in interface BundleContextAware
getAllServices
protected <T> List<T> getAllServices(Class<T> clazz,
String filter)
throws Exception
- Throws:
Exception
getService
protected <T> T getService(Class<T> clazz,
org.osgi.framework.ServiceReference reference)
ungetServices
protected void ungetServices()
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.