public class DelegatingBundleContext extends Object implements org.osgi.framework.BundleContext
Constructor and Description |
---|
DelegatingBundleContext(DelegatingBundle bundle,
org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
addBundleListener(org.osgi.framework.BundleListener arg0) |
void |
addFrameworkListener(org.osgi.framework.FrameworkListener arg0) |
void |
addServiceListener(org.osgi.framework.ServiceListener arg0) |
void |
addServiceListener(org.osgi.framework.ServiceListener arg0,
String arg1) |
org.osgi.framework.Filter |
createFilter(String arg0) |
|
getAllServiceReferences(String clazz,
String filter) |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.Bundle |
getBundle(long arg0) |
org.osgi.framework.Bundle |
getBundle(String location) |
org.osgi.framework.Bundle[] |
getBundles() |
File |
getDataFile(String arg0) |
String |
getProperty(String arg0) |
<S> S |
getService( |
<S> |
getServiceReference(Class<S> clazz) |
|
getServiceReference(String clazz) |
<S> Collection< |
getServiceReferences(Class<S> clazz,
String filter) |
|
getServiceReferences(String clazz,
String filter) |
org.osgi.framework.Bundle |
installBundle(String arg0) |
org.osgi.framework.Bundle |
installBundle(String arg0,
InputStream arg1) |
<S> |
registerService(Class<S> clazz,
S service,
Dictionary<String,?> properties) |
|
registerService(String[] classes,
Object service,
Dictionary<String,?> properties) |
|
registerService(String clazz,
Object service,
Dictionary<String,?> properties) |
void |
removeBundleListener(org.osgi.framework.BundleListener arg0) |
void |
removeFrameworkListener(org.osgi.framework.FrameworkListener arg0) |
void |
removeServiceListener(org.osgi.framework.ServiceListener arg0) |
boolean |
ungetService( |
public DelegatingBundleContext(DelegatingBundle bundle, org.osgi.framework.BundleContext bundleContext)
public org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.BundleContext
public void addBundleListener(org.osgi.framework.BundleListener arg0)
addBundleListener
in interface org.osgi.framework.BundleContext
public void addFrameworkListener(org.osgi.framework.FrameworkListener arg0)
addFrameworkListener
in interface org.osgi.framework.BundleContext
public void addServiceListener(org.osgi.framework.ServiceListener arg0, String arg1) throws org.osgi.framework.InvalidSyntaxException
addServiceListener
in interface org.osgi.framework.BundleContext
org.osgi.framework.InvalidSyntaxException
public void addServiceListener(org.osgi.framework.ServiceListener arg0)
addServiceListener
in interface org.osgi.framework.BundleContext
public org.osgi.framework.Filter createFilter(String arg0) throws org.osgi.framework.InvalidSyntaxException
createFilter
in interface org.osgi.framework.BundleContext
org.osgi.framework.InvalidSyntaxException
public org.osgi.framework.Bundle getBundle(long arg0)
getBundle
in interface org.osgi.framework.BundleContext
public org.osgi.framework.Bundle[] getBundles()
getBundles
in interface org.osgi.framework.BundleContext
public File getDataFile(String arg0)
getDataFile
in interface org.osgi.framework.BundleContext
public String getProperty(String arg0)
getProperty
in interface org.osgi.framework.BundleContext
public <S> S getService(reference)
publicgetServiceReference(String clazz)
getServiceReference
in interface org.osgi.framework.BundleContext
public[] getServiceReferences(String clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
getServiceReferences
in interface org.osgi.framework.BundleContext
org.osgi.framework.InvalidSyntaxException
public <S>getServiceReference(Class<S> clazz)
public <S> Collection<> getServiceReferences(Class<S> clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
public[] getAllServiceReferences(String clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
getAllServiceReferences
in interface org.osgi.framework.BundleContext
org.osgi.framework.InvalidSyntaxException
public org.osgi.framework.Bundle installBundle(String arg0, InputStream arg1) throws org.osgi.framework.BundleException
installBundle
in interface org.osgi.framework.BundleContext
org.osgi.framework.BundleException
public org.osgi.framework.Bundle installBundle(String arg0) throws org.osgi.framework.BundleException
installBundle
in interface org.osgi.framework.BundleContext
org.osgi.framework.BundleException
publicregisterService(String clazz, Object service, Dictionary<String,?> properties)
publicregisterService(String[] classes, Object service, Dictionary<String,?> properties)
public <S>registerService(Class<S> clazz, S service, Dictionary<String,?> properties)
public void removeBundleListener(org.osgi.framework.BundleListener arg0)
removeBundleListener
in interface org.osgi.framework.BundleContext
public void removeFrameworkListener(org.osgi.framework.FrameworkListener arg0)
removeFrameworkListener
in interface org.osgi.framework.BundleContext
public void removeServiceListener(org.osgi.framework.ServiceListener arg0)
removeServiceListener
in interface org.osgi.framework.BundleContext
public boolean ungetService(reference)
ungetService
in interface org.osgi.framework.BundleContext
public org.osgi.framework.Bundle getBundle(String location)
Copyright © 2005-2017. All Rights Reserved.