public final class BundleContextAdaptor extends Object implements org.osgi.framework.BundleContext
| Constructor and Description |
|---|
BundleContextAdaptor(org.jboss.gravia.runtime.ModuleContext moduleContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBundleListener(org.osgi.framework.BundleListener listener) |
void |
addFrameworkListener(org.osgi.framework.FrameworkListener listener) |
void |
addServiceListener(org.osgi.framework.ServiceListener listener) |
void |
addServiceListener(org.osgi.framework.ServiceListener listener,
String filter) |
org.osgi.framework.Filter |
createFilter(String filter) |
org.osgi.framework.ServiceReference<?>[] |
getAllServiceReferences(String className,
String filter) |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.Bundle |
getBundle(long id) |
org.osgi.framework.Bundle |
getBundle(String location) |
org.osgi.framework.Bundle[] |
getBundles() |
File |
getDataFile(String filename) |
String |
getProperty(String key) |
<S> S |
getService(org.osgi.framework.ServiceReference<S> reference) |
<S> org.osgi.framework.ServiceReference<S> |
getServiceReference(Class<S> clazz) |
org.osgi.framework.ServiceReference<?> |
getServiceReference(String className) |
<S> Collection<org.osgi.framework.ServiceReference<S>> |
getServiceReferences(Class<S> clazz,
String filter) |
org.osgi.framework.ServiceReference<?>[] |
getServiceReferences(String className,
String filter) |
org.osgi.framework.Bundle |
installBundle(String location) |
org.osgi.framework.Bundle |
installBundle(String location,
InputStream input) |
<S> org.osgi.framework.ServiceRegistration<S> |
registerService(Class<S> clazz,
S service,
Dictionary<String,?> properties) |
org.osgi.framework.ServiceRegistration<?> |
registerService(String[] classNames,
Object service,
Dictionary<String,?> properties) |
org.osgi.framework.ServiceRegistration<?> |
registerService(String className,
Object service,
Dictionary<String,?> properties) |
void |
removeBundleListener(org.osgi.framework.BundleListener listener) |
void |
removeFrameworkListener(org.osgi.framework.FrameworkListener listener) |
void |
removeServiceListener(org.osgi.framework.ServiceListener listener) |
String |
toString() |
boolean |
ungetService(org.osgi.framework.ServiceReference<?> reference) |
public BundleContextAdaptor(org.jboss.gravia.runtime.ModuleContext moduleContext)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleContextgetBundle in interface org.osgi.framework.BundleReferencepublic String getProperty(String key)
getProperty in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Bundle getBundle(long id)
getBundle in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Bundle installBundle(String location, InputStream input) throws org.osgi.framework.BundleException
installBundle in interface org.osgi.framework.BundleContextorg.osgi.framework.BundleExceptionpublic org.osgi.framework.Bundle installBundle(String location) throws org.osgi.framework.BundleException
installBundle in interface org.osgi.framework.BundleContextorg.osgi.framework.BundleExceptionpublic org.osgi.framework.Bundle getBundle(String location)
getBundle in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Bundle[] getBundles()
getBundles in interface org.osgi.framework.BundleContextpublic void addServiceListener(org.osgi.framework.ServiceListener listener,
String filter)
throws org.osgi.framework.InvalidSyntaxException
addServiceListener in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic void addServiceListener(org.osgi.framework.ServiceListener listener)
addServiceListener in interface org.osgi.framework.BundleContextpublic void removeServiceListener(org.osgi.framework.ServiceListener listener)
removeServiceListener in interface org.osgi.framework.BundleContextpublic void addBundleListener(org.osgi.framework.BundleListener listener)
addBundleListener in interface org.osgi.framework.BundleContextpublic void removeBundleListener(org.osgi.framework.BundleListener listener)
removeBundleListener in interface org.osgi.framework.BundleContextpublic void addFrameworkListener(org.osgi.framework.FrameworkListener listener)
addFrameworkListener in interface org.osgi.framework.BundleContextpublic void removeFrameworkListener(org.osgi.framework.FrameworkListener listener)
removeFrameworkListener in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceRegistration<?> registerService(String[] classNames, Object service, Dictionary<String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceRegistration<?> registerService(String className, Object service, Dictionary<String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic <S> org.osgi.framework.ServiceRegistration<S> registerService(Class<S> clazz, S service, Dictionary<String,?> properties)
registerService in interface org.osgi.framework.BundleContextpublic org.osgi.framework.ServiceReference<?>[] getServiceReferences(String className, String filter) throws org.osgi.framework.InvalidSyntaxException
getServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic <S> Collection<org.osgi.framework.ServiceReference<S>> getServiceReferences(Class<S> clazz, String filter) throws org.osgi.framework.InvalidSyntaxException
getServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic org.osgi.framework.ServiceReference<?>[] getAllServiceReferences(String className, String filter) throws org.osgi.framework.InvalidSyntaxException
getAllServiceReferences in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionpublic org.osgi.framework.ServiceReference<?> getServiceReference(String className)
getServiceReference in interface org.osgi.framework.BundleContextpublic <S> org.osgi.framework.ServiceReference<S> getServiceReference(Class<S> clazz)
getServiceReference in interface org.osgi.framework.BundleContextpublic <S> S getService(org.osgi.framework.ServiceReference<S> reference)
getService in interface org.osgi.framework.BundleContextpublic boolean ungetService(org.osgi.framework.ServiceReference<?> reference)
ungetService in interface org.osgi.framework.BundleContextpublic File getDataFile(String filename)
getDataFile in interface org.osgi.framework.BundleContextpublic org.osgi.framework.Filter createFilter(String filter) throws org.osgi.framework.InvalidSyntaxException
createFilter in interface org.osgi.framework.BundleContextorg.osgi.framework.InvalidSyntaxExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.