Package 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,Action,BundleContextAware
@Deprecated public abstract class OsgiCommandSupport extends AbstractAction implements Action, BundleContextAware
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContextDeprecated.protected List<org.osgi.framework.ServiceReference<?>>usedReferencesDeprecated.-
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
-
-
Constructor Summary
Constructors Constructor Description OsgiCommandSupport()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectexecute(org.apache.felix.service.command.CommandSession session)Deprecated.protected <T> List<T>getAllServices(Class<T> clazz)Deprecated.protected <T> List<T>getAllServices(Class<T> clazz, String filter)Deprecated.org.osgi.framework.BundleContextgetBundleContext()Deprecated.protected <T> TgetService(Class<T> clazz)Deprecated.protected <T> TgetService(Class<T> clazz, org.osgi.framework.ServiceReference<T> reference)Deprecated.voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)Deprecated.protected voidungetServices()Deprecated.-
Methods inherited from class org.apache.karaf.shell.console.AbstractAction
checkInterrupted, doExecute
-
-
-
-
Field Detail
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
Deprecated.
-
usedReferences
protected List<org.osgi.framework.ServiceReference<?>> usedReferences
Deprecated.
-
-
Method Detail
-
execute
public Object execute(org.apache.felix.service.command.CommandSession session) throws Exception
Deprecated.
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
Deprecated.
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Deprecated.- Specified by:
setBundleContextin interfaceBundleContextAware
-
getAllServices
protected <T> List<T> getAllServices(Class<T> clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
Deprecated.- Throws:
org.osgi.framework.InvalidSyntaxException
-
getService
protected <T> T getService(Class<T> clazz)
Deprecated.
-
getService
protected <T> T getService(Class<T> clazz, org.osgi.framework.ServiceReference<T> reference)
Deprecated.
-
ungetServices
protected void ungetServices()
Deprecated.
-
-