class SimpleServiceConsuming extends ServiceConsuming
A class that mixes in the ServiceConsuming trait. Use this if you want to use a class instead of a trait.
- Alphabetic
- By Inheritance
- SimpleServiceConsuming
- ServiceConsuming
- DominoImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SimpleServiceConsuming(osgiContext: OsgiContext)
- new SimpleServiceConsuming(bundleContext: BundleContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
bundleContext: BundleContext
Dependency
Dependency
- Attributes
- protected
- Definition Classes
- SimpleServiceConsuming → ServiceConsuming → DominoImplicits
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
service[S <: AnyRef](filter: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Option[S]
Returns the first available service of the specified class which satisfies the filter if available.
Returns the first available service of the specified class which satisfies the filter if available. If the service is not available, it returns
None
. The service is not explicitly released.- S
service type
- filter
filter expression
- returns
service if available
- Definition Classes
- ServiceConsuming
-
def
service[S <: AnyRef](implicit arg0: ClassTag[S]): Option[S]
Returns the highest-ranked service of the specified type if available.
Returns the highest-ranked service of the specified type if available. The service is not explicitly released. It's assumed that the service will be used until the bundle stops. Doesn't take type parameters into account!
- S
service type
- returns
service if available
- Definition Classes
- ServiceConsuming
-
def
serviceRef[S <: AnyRef](filter: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Option[ServiceReference[S]]
Like service with filter but returns the service reference.
Like service with filter but returns the service reference.
- Definition Classes
- ServiceConsuming
-
def
serviceRef[S <: AnyRef](implicit arg0: ClassTag[S]): Option[ServiceReference[S]]
Like service but returns the reference so you can access meta information about that service.
Like service but returns the reference so you can access meta information about that service. An implicit conversion adds a
service
property to the reference, so you can simply use that to obtain the service. Doesn't take type parameters into account!- Definition Classes
- ServiceConsuming
-
implicit
def
serviceRefToRichServiceRef[S <: AnyRef](serviceRef: ServiceReference[S]): RichServiceReference[S]
Converts a service reference to a rich service reference so one can easily obtain the corresponding service by calling
service
, for example.Converts a service reference to a rich service reference so one can easily obtain the corresponding service by calling
service
, for example.- Definition Classes
- DominoImplicits
-
def
serviceRefs[S <: AnyRef](filter: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[ServiceReference[S]]
Like services with filters but returns the references.
Like services with filters but returns the references.
- Definition Classes
- ServiceConsuming
-
def
serviceRefs[S <: AnyRef](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[ServiceReference[S]]
Like services but returns service references.
Like services but returns service references.
- Definition Classes
- ServiceConsuming
-
def
services[S <: AnyRef](filter: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[S]
Returns all services of the specified type which satisfy the given filter.
Returns all services of the specified type which satisfy the given filter.
- S
service type
- filter
filter expression
- returns
services
- Definition Classes
- ServiceConsuming
-
def
services[S <: AnyRef](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[S]
Returns all services of the given type.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withAdvancedService[S <: AnyRef, R](filter: String)(f: (Option[S]) ⇒ R)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): R
Executes the given handler with the first available service of the specified class which satisfies the filter if available.
Executes the given handler with the first available service of the specified class which satisfies the filter if available. If it's not available, it still executes it but with
None
.When the handler returns, the service is released using org.osgi.framework.BundleContext#ungetService.
- S
service type
- R
function result type
- filter
filter expression
- f
handler that uses the service
- returns
handler result
- Definition Classes
- ServiceConsuming
-
def
withService[S <: AnyRef, R](f: (Option[S]) ⇒ R)(implicit arg0: ClassTag[S]): R
Executes the given handler with the highest-ranked service of the specified type.
Executes the given handler with the highest-ranked service of the specified type. If it's not available, it still executes it but with
None
. Doesn't take type parameters into account!When the handler returns, the service is released using org.osgi.framework.BundleContext#ungetService.
- S
service type
- R
function result type
- f
handler that uses the service
- returns
handler result
- Definition Classes
- ServiceConsuming
Inherited from ServiceConsuming
Inherited from DominoImplicits
Inherited from AnyRef
Inherited from Any
Consume service references
Methods for obtaining access to OSGi service references
Consume services
Methods for obtaining access to OSGi services