The type of the service instance.
Returns the BundleContext
of the bundle which contains this
component.
Returns the ComponentInstance associated with this context.
Returns the component properties for this context.
The properties for this context. The Dictionary is readonly and cannot be modified.
If the component instance is registered as a service using the
service
element, this method returns the service
reference of the service provided by this component instance.
This method will return undefined
if the component instance is
not registered as a service.
The ServiceReference
object for the component
instance or undefined
if the component instance is not
registered as a service.
If the component instance is registered as a service using the
serviceFactory="true"
attribute, then this method
returns the bundle using the service provided by the component instance.
This method will return undefined
if:
serviceFactory="true"
attribute, so all bundles
using the service provided by the component instance will share the same
component instance.The bundle using the component instance as a service or
undefined
.
Returns the service object for the specified reference name and ServiceReference.
The name of a reference as specified in a
reference
element in this component's description.
The ServiceReference to a service. This must be a reference provided by locateService(s) matching the reference name.
A service object for the referenced service or undefined
Returns the service reference objects for the specified reference name.
The name of a reference as specified in a
reference
element in this component's description.
An array of service reference objects for the referenced service.
Returns the service objects for the specified reference name.
The name of a reference as specified in a
reference
element in this component's description.
An array of service objects for the referenced service.
Context of a ComponentInstance.