org.helgoboss.domino.service_consuming

SimpleServiceConsuming

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.

Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. SimpleServiceConsuming
  2. ServiceConsuming
  3. DominoImplicits
  4. AnyRef
  5. 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

Instance Constructors

  1. new SimpleServiceConsuming(osgiContext: OsgiContext)

  2. new SimpleServiceConsuming(bundleContext: BundleContext)

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 SimpleServiceConsuming to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (SimpleServiceConsuming, B)

    Implicit information
    This member is added by an implicit conversion from SimpleServiceConsuming to ArrowAssoc[SimpleServiceConsuming] 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. val bundleContext: BundleContext

    Dependency

    Dependency

    Attributes
    protected
    Definition Classes
    SimpleServiceConsumingServiceConsumingDominoImplicits
  10. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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

    Definition Classes
    ServiceConsuming
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. 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
  40. 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
  41. def [B](y: B): (SimpleServiceConsuming, B)

    Implicit information
    This member is added by an implicit conversion from SimpleServiceConsuming to ArrowAssoc[SimpleServiceConsuming] 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 SimpleServiceConsuming 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:
    (simpleServiceConsuming: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from SimpleServiceConsuming 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:
    (simpleServiceConsuming: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: SimpleServiceConsuming

    Implicit information
    This member is added by an implicit conversion from SimpleServiceConsuming to ArrowAssoc[SimpleServiceConsuming] 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:
    (simpleServiceConsuming: ArrowAssoc[SimpleServiceConsuming]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: SimpleServiceConsuming

    Implicit information
    This member is added by an implicit conversion from SimpleServiceConsuming to Ensuring[SimpleServiceConsuming] 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:
    (simpleServiceConsuming: Ensuring[SimpleServiceConsuming]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from ServiceConsuming

Inherited from DominoImplicits

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SimpleServiceConsuming to StringAdd

Inherited by implicit conversion any2stringfmt from SimpleServiceConsuming to StringFormat

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

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

Consume service references

Methods for obtaining access to OSGi service references

Consume services

Methods for obtaining access to OSGi services

Ungrouped