org.osgi.framework.BundleContext, org.osgi.framework.BundleReferencepublic class DelegatingBundleContext
extends java.lang.Object
implements org.osgi.framework.BundleContext
| Constructor | Description |
|---|---|
DelegatingBundleContext(DelegatingBundle bundle,
org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method | 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,
java.lang.String arg1) |
|
org.osgi.framework.Filter |
createFilter(java.lang.String arg0) |
|
org.osgi.framework.ServiceReference<?>[] |
getAllServiceReferences(java.lang.String clazz,
java.lang.String filter) |
|
org.osgi.framework.Bundle |
getBundle() |
|
org.osgi.framework.Bundle |
getBundle(long arg0) |
|
org.osgi.framework.Bundle |
getBundle(java.lang.String location) |
|
org.osgi.framework.Bundle[] |
getBundles() |
|
java.io.File |
getDataFile(java.lang.String arg0) |
|
java.lang.String |
getProperty(java.lang.String arg0) |
|
<S> S |
getService(org.osgi.framework.ServiceReference<S> reference) |
|
<S> org.osgi.framework.ServiceObjects<S> |
getServiceObjects(org.osgi.framework.ServiceReference<S> reference) |
|
<S> org.osgi.framework.ServiceReference<S> |
getServiceReference(java.lang.Class<S> clazz) |
|
org.osgi.framework.ServiceReference<?> |
getServiceReference(java.lang.String clazz) |
|
<S> java.util.Collection<org.osgi.framework.ServiceReference<S>> |
getServiceReferences(java.lang.Class<S> clazz,
java.lang.String filter) |
|
org.osgi.framework.ServiceReference<?>[] |
getServiceReferences(java.lang.String clazz,
java.lang.String filter) |
|
org.osgi.framework.Bundle |
installBundle(java.lang.String arg0) |
|
org.osgi.framework.Bundle |
installBundle(java.lang.String arg0,
java.io.InputStream arg1) |
|
<S> org.osgi.framework.ServiceRegistration<S> |
registerService(java.lang.Class<S> clazz,
org.osgi.framework.ServiceFactory<S> factory,
java.util.Dictionary<java.lang.String,?> properties) |
|
<S> org.osgi.framework.ServiceRegistration<S> |
registerService(java.lang.Class<S> clazz,
S service,
java.util.Dictionary<java.lang.String,?> properties) |
|
org.osgi.framework.ServiceRegistration<?> |
registerService(java.lang.String[] classes,
java.lang.Object service,
java.util.Dictionary<java.lang.String,?> properties) |
|
org.osgi.framework.ServiceRegistration<?> |
registerService(java.lang.String clazz,
java.lang.Object service,
java.util.Dictionary<java.lang.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(org.osgi.framework.ServiceReference<?> reference) |
public DelegatingBundleContext(DelegatingBundle bundle, org.osgi.framework.BundleContext bundleContext)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleContextgetBundle in interface org.osgi.framework.BundleReferencepublic void addBundleListener(org.osgi.framework.BundleListener arg0)
addBundleListener in interface org.osgi.framework.BundleContextpublic void addFrameworkListener(org.osgi.framework.FrameworkListener arg0)
addFrameworkListener in interface org.osgi.framework.BundleContextpublic void addServiceListener(org.osgi.framework.ServiceListener arg0,
java.lang.String arg1)
throws org.osgi.framework.InvalidSyntaxException
addServiceListener in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic void addServiceListener(org.osgi.framework.ServiceListener arg0)
addServiceListener in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Filter createFilter(java.lang.String arg0)
throws org.osgi.framework.InvalidSyntaxException
createFilter in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic org.osgi.framework.Bundle getBundle(long arg0)
getBundle in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Bundle[] getBundles()
getBundles in interface org.osgi.framework.BundleContextpublic java.io.File getDataFile(java.lang.String arg0)
getDataFile in interface org.osgi.framework.BundleContextpublic java.lang.String getProperty(java.lang.String arg0)
getProperty in interface org.osgi.framework.BundleContextpublic <S> S getService(org.osgi.framework.ServiceReference<S> reference)
getService in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceReference<?> getServiceReference(java.lang.String clazz)
getServiceReference in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceReference<?>[] getServiceReferences(java.lang.String clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
getServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic <S> org.osgi.framework.ServiceReference<S> getServiceReference(java.lang.Class<S> clazz)
getServiceReference in interface org.osgi.framework.BundleContextpublic <S> java.util.Collection<org.osgi.framework.ServiceReference<S>> getServiceReferences(java.lang.Class<S> clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
getServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic org.osgi.framework.ServiceReference<?>[] getAllServiceReferences(java.lang.String clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
getAllServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic org.osgi.framework.Bundle installBundle(java.lang.String arg0,
java.io.InputStream arg1)
throws org.osgi.framework.BundleException
installBundle in interface org.osgi.framework.BundleContextorg.osgi.framework.BundleExceptionpublic org.osgi.framework.Bundle installBundle(java.lang.String arg0)
throws org.osgi.framework.BundleException
installBundle in interface org.osgi.framework.BundleContextorg.osgi.framework.BundleExceptionpublic org.osgi.framework.ServiceRegistration<?> registerService(java.lang.String clazz,
java.lang.Object service,
java.util.Dictionary<java.lang.String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceRegistration<?> registerService(java.lang.String[] classes,
java.lang.Object service,
java.util.Dictionary<java.lang.String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic <S> org.osgi.framework.ServiceRegistration<S> registerService(java.lang.Class<S> clazz,
S service,
java.util.Dictionary<java.lang.String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic void removeBundleListener(org.osgi.framework.BundleListener arg0)
removeBundleListener in interface org.osgi.framework.BundleContextpublic void removeFrameworkListener(org.osgi.framework.FrameworkListener arg0)
removeFrameworkListener in interface org.osgi.framework.BundleContextpublic void removeServiceListener(org.osgi.framework.ServiceListener arg0)
removeServiceListener in interface org.osgi.framework.BundleContextpublic boolean ungetService(org.osgi.framework.ServiceReference<?> reference)
ungetService in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Bundle getBundle(java.lang.String location)
getBundle in interface org.osgi.framework.BundleContextpublic <S> org.osgi.framework.ServiceObjects<S> getServiceObjects(org.osgi.framework.ServiceReference<S> reference)
getServiceObjects in interface org.osgi.framework.BundleContextpublic <S> org.osgi.framework.ServiceRegistration<S> registerService(java.lang.Class<S> clazz,
org.osgi.framework.ServiceFactory<S> factory,
java.util.Dictionary<java.lang.String,?> properties)
registerService in interface org.osgi.framework.BundleContextCopyright © 2005–2018. All rights reserved.