Trait

domino.service_watching

ServiceWatching

Related Doc: package service_watching

Permalink

trait ServiceWatching extends DominoImplicits

Provides convenient methods to add a service watcher to the current scope or wait until services are present.

Linear Supertypes
DominoImplicits, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServiceWatching
  2. DominoImplicits
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def bundleContext: BundleContext

    Permalink

    Dependency

    Dependency

    Attributes
    protected
    Definition Classes
    ServiceWatchingDominoImplicits
  2. abstract def capsuleContext: CapsuleContext

    Permalink

    Dependency

    Dependency

    Attributes
    protected

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. implicit def serviceRefToRichServiceRef[S <: AnyRef](serviceRef: ServiceReference[S]): RichServiceReference[S]

    Permalink

    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
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def watchAdvancedServices[S <: AnyRef](filter: String)(f: (ServiceWatcherEvent[S]) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]

    Permalink

    Lets you react to service events for services with the specified type which match the given filter.

    Lets you react to service events for services with the specified type which match the given filter.

    S

    Service type

    f

    Service event handler

    returns

    Underlying service tracker

  22. def watchServices[S <: AnyRef](f: (ServiceWatcherEvent[S]) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]

    Permalink

    Lets you react to service events for services with the specified type.

    Lets you react to service events for services with the specified type.

    S

    Service type

    f

    Service event handler

    returns

    Underlying service tracker

  23. def whenAdvancedServicePresent[S <: AnyRef](filter: String)(f: (S) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]

    Permalink

    Activates the given inner logic as long as the first service of the given type is present.

    Activates the given inner logic as long as the first service of the given type is present. This implements the concept of required services. The inner logic is started as soon as a service s of the given type gets present and stopped when s is removed.

    To do

    Idea for roadmap: Fallback to another service if s is removed and another service of the type is available (reevaluate capsule).

  24. def whenServicePresent[S <: AnyRef](f: (S) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]

    Permalink

    Waits until a service of the specified type is available and executes the given event handler with it.

    Waits until a service of the specified type is available and executes the given event handler with it. When the service disappears, the capsules added in the handlers are stopped. You can wait on a bunch of services if you nest whenServicePresent methods.

    S

    Service type

    f

    Handler

    returns

    Underlying service tracker

  25. def whenServicesPresent[S1 <: AnyRef, S2 <: AnyRef, S3 <: AnyRef, S4 <: AnyRef, S5 <: AnyRef](f: (S1, S2, S3, S4, S5) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S1], arg1: ClassTag[S1], arg2: scala.reflect.api.JavaUniverse.TypeTag[S2], arg3: ClassTag[S2], arg4: scala.reflect.api.JavaUniverse.TypeTag[S3], arg5: ClassTag[S3], arg6: scala.reflect.api.JavaUniverse.TypeTag[S4], arg7: ClassTag[S4], arg8: scala.reflect.api.JavaUniverse.TypeTag[S5], arg9: ClassTag[S5]): ServiceTracker[S1, S1]

    Permalink

  26. def whenServicesPresent[S1 <: AnyRef, S2 <: AnyRef, S3 <: AnyRef, S4 <: AnyRef](f: (S1, S2, S3, S4) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S1], arg1: ClassTag[S1], arg2: scala.reflect.api.JavaUniverse.TypeTag[S2], arg3: ClassTag[S2], arg4: scala.reflect.api.JavaUniverse.TypeTag[S3], arg5: ClassTag[S3], arg6: scala.reflect.api.JavaUniverse.TypeTag[S4], arg7: ClassTag[S4]): ServiceTracker[S1, S1]

    Permalink

  27. def whenServicesPresent[S1 <: AnyRef, S2 <: AnyRef, S3 <: AnyRef](f: (S1, S2, S3) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S1], arg1: ClassTag[S1], arg2: scala.reflect.api.JavaUniverse.TypeTag[S2], arg3: ClassTag[S2], arg4: scala.reflect.api.JavaUniverse.TypeTag[S3], arg5: ClassTag[S3]): ServiceTracker[S1, S1]

    Permalink

  28. def whenServicesPresent[S1 <: AnyRef, S2 <: AnyRef](f: (S1, S2) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S1], arg1: ClassTag[S1], arg2: scala.reflect.api.JavaUniverse.TypeTag[S2], arg3: ClassTag[S2]): ServiceTracker[S1, S1]

    Permalink

Inherited from DominoImplicits

Inherited from AnyRef

Inherited from Any

Wait for services

Methods for waiting until services become available

Watch services

Methods for reacting to service events

Ungrouped