org.apache.xbean.osgi.bundle.util
Class DelegatingBundleContext
java.lang.Object
org.apache.xbean.osgi.bundle.util.DelegatingBundleContext
- All Implemented Interfaces:
- org.osgi.framework.BundleContext, org.osgi.framework.BundleReference
public class DelegatingBundleContext
- extends java.lang.Object
- implements org.osgi.framework.BundleContext
BundleContext for DelegatingBundle.
- Version:
- $Rev: 937957 $ $Date: 2010-04-26 10:00:08 +0200 (lun. 26 avril 2010) $
Method Summary |
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 arg0,
java.lang.String arg1)
|
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)
|
java.lang.Object |
getService(org.osgi.framework.ServiceReference arg0)
|
<S> org.osgi.framework.ServiceReference<S> |
|
getServiceReference(java.lang.Class<S> clazz)
|
org.osgi.framework.ServiceReference |
getServiceReference(java.lang.String arg0)
|
<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 arg0,
java.lang.String arg1)
|
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,
S service,
java.util.Dictionary<java.lang.String,?> properties)
|
org.osgi.framework.ServiceRegistration |
registerService(java.lang.String[] arg0,
java.lang.Object arg1,
java.util.Dictionary arg2)
|
org.osgi.framework.ServiceRegistration |
registerService(java.lang.String arg0,
java.lang.Object arg1,
java.util.Dictionary arg2)
|
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 arg0)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingBundleContext
public DelegatingBundleContext(DelegatingBundle bundle,
org.osgi.framework.BundleContext bundleContext)
getBundle
public org.osgi.framework.Bundle getBundle()
- Specified by:
getBundle
in interface org.osgi.framework.BundleContext
- Specified by:
getBundle
in interface org.osgi.framework.BundleReference
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener arg0)
- Specified by:
addBundleListener
in interface org.osgi.framework.BundleContext
addFrameworkListener
public void addFrameworkListener(org.osgi.framework.FrameworkListener arg0)
- Specified by:
addFrameworkListener
in interface org.osgi.framework.BundleContext
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener arg0,
java.lang.String arg1)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
addServiceListener
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener arg0)
- Specified by:
addServiceListener
in interface org.osgi.framework.BundleContext
createFilter
public org.osgi.framework.Filter createFilter(java.lang.String arg0)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
createFilter
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
getAllServiceReferences
public org.osgi.framework.ServiceReference[] getAllServiceReferences(java.lang.String arg0,
java.lang.String arg1)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
getAllServiceReferences
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
getBundle
public org.osgi.framework.Bundle getBundle(long arg0)
- Specified by:
getBundle
in interface org.osgi.framework.BundleContext
getBundles
public org.osgi.framework.Bundle[] getBundles()
- Specified by:
getBundles
in interface org.osgi.framework.BundleContext
getDataFile
public java.io.File getDataFile(java.lang.String arg0)
- Specified by:
getDataFile
in interface org.osgi.framework.BundleContext
getProperty
public java.lang.String getProperty(java.lang.String arg0)
- Specified by:
getProperty
in interface org.osgi.framework.BundleContext
getService
public java.lang.Object getService(org.osgi.framework.ServiceReference arg0)
- Specified by:
getService
in interface org.osgi.framework.BundleContext
getServiceReference
public org.osgi.framework.ServiceReference getServiceReference(java.lang.String arg0)
- Specified by:
getServiceReference
in interface org.osgi.framework.BundleContext
getServiceReferences
public org.osgi.framework.ServiceReference[] getServiceReferences(java.lang.String arg0,
java.lang.String arg1)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
getServiceReferences
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
installBundle
public org.osgi.framework.Bundle installBundle(java.lang.String arg0,
java.io.InputStream arg1)
throws org.osgi.framework.BundleException
- Specified by:
installBundle
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.BundleException
installBundle
public org.osgi.framework.Bundle installBundle(java.lang.String arg0)
throws org.osgi.framework.BundleException
- Specified by:
installBundle
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.BundleException
registerService
public org.osgi.framework.ServiceRegistration registerService(java.lang.String arg0,
java.lang.Object arg1,
java.util.Dictionary arg2)
- Specified by:
registerService
in interface org.osgi.framework.BundleContext
registerService
public org.osgi.framework.ServiceRegistration registerService(java.lang.String[] arg0,
java.lang.Object arg1,
java.util.Dictionary arg2)
- Specified by:
registerService
in interface org.osgi.framework.BundleContext
removeBundleListener
public void removeBundleListener(org.osgi.framework.BundleListener arg0)
- Specified by:
removeBundleListener
in interface org.osgi.framework.BundleContext
removeFrameworkListener
public void removeFrameworkListener(org.osgi.framework.FrameworkListener arg0)
- Specified by:
removeFrameworkListener
in interface org.osgi.framework.BundleContext
removeServiceListener
public void removeServiceListener(org.osgi.framework.ServiceListener arg0)
- Specified by:
removeServiceListener
in interface org.osgi.framework.BundleContext
ungetService
public boolean ungetService(org.osgi.framework.ServiceReference arg0)
- Specified by:
ungetService
in interface org.osgi.framework.BundleContext
registerService
public <S> org.osgi.framework.ServiceRegistration<S> registerService(java.lang.Class<S> clazz,
S service,
java.util.Dictionary<java.lang.String,?> properties)
- Specified by:
registerService
in interface org.osgi.framework.BundleContext
getServiceReference
public <S> org.osgi.framework.ServiceReference<S> getServiceReference(java.lang.Class<S> clazz)
- Specified by:
getServiceReference
in interface org.osgi.framework.BundleContext
getServiceReferences
public <S> java.util.Collection<org.osgi.framework.ServiceReference<S>> getServiceReferences(java.lang.Class<S> clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
getServiceReferences
in interface org.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
getBundle
public org.osgi.framework.Bundle getBundle(java.lang.String location)
- Specified by:
getBundle
in interface org.osgi.framework.BundleContext
Copyright © 2005-2011. All Rights Reserved.