Wrapped service reference
Returns the service for this reference if available.
Executes the given function with a service obtained from this reference or with None
.
Executes the given function with a service obtained from this reference or with None
.
When the function returns, the service is released using org.osgi.framework.BundleContext#ungetService.
function that uses the service
function result
(richServiceReference: StringAdd).self
(richServiceReference: StringFormat).self
(richServiceReference: ArrowAssoc[RichServiceReference[S]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(richServiceReference: Ensuring[RichServiceReference[S]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Wrapper for a service reference which adds methods to resolve the corresponding service.