org.helgoboss.domino.service_consuming

ServiceConsuming

trait ServiceConsuming extends DominoImplicits

Provides convenient methods to consume OSGi services.

Linear Supertypes
DominoImplicits, AnyRef, Any
Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. ServiceConsuming
  2. DominoImplicits
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def bundleContext: BundleContext

    Dependency

    Dependency

    Attributes
    protected
    Definition Classes
    ServiceConsumingDominoImplicits

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ServiceConsuming, B)

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to ArrowAssoc[ServiceConsuming] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def ensuring(cond: (ServiceConsuming) ⇒ Boolean, msg: ⇒ Any): ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to Ensuring[ServiceConsuming] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ServiceConsuming) ⇒ Boolean): ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to Ensuring[ServiceConsuming] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to Ensuring[ServiceConsuming] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to Ensuring[ServiceConsuming] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. 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

  25. 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

  26. 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.

  27. 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!

  28. 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
  29. 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.

  30. def serviceRefs[S <: AnyRef](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[ServiceReference[S]]

    Like services but returns service references.

  31. 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

  32. def services[S <: AnyRef](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): Seq[S]

    Returns all services of the given type.

    Returns all services of the given type.

    S

    service type

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. 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

  39. 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

  40. def [B](y: B): (ServiceConsuming, B)

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to ArrowAssoc[ServiceConsuming] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serviceConsuming: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serviceConsuming: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to ArrowAssoc[ServiceConsuming] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serviceConsuming: ArrowAssoc[ServiceConsuming]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: ServiceConsuming

    Implicit information
    This member is added by an implicit conversion from ServiceConsuming to Ensuring[ServiceConsuming] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serviceConsuming: Ensuring[ServiceConsuming]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from DominoImplicits

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ServiceConsuming to StringAdd

Inherited by implicit conversion any2stringfmt from ServiceConsuming to StringFormat

Inherited by implicit conversion any2ArrowAssoc from ServiceConsuming to ArrowAssoc[ServiceConsuming]

Inherited by implicit conversion any2Ensuring from ServiceConsuming to Ensuring[ServiceConsuming]

Consume service references

Methods for obtaining access to OSGi service references

Consume services

Methods for obtaining access to OSGi services

Ungrouped