class SimpleServiceWatching extends ServiceWatching
A class that mixes in the ServiceWatching trait. Use this if you want to use a class instead of a trait.
- Alphabetic
- By Inheritance
- SimpleServiceWatching
- ServiceWatching
- DominoImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SimpleServiceWatching(DominoActivator: DominoActivator)
- new SimpleServiceWatching(osgiContext: OsgiContext, serviceProviding: ServiceProviding)
- new SimpleServiceWatching(capsuleContext: CapsuleContext, bundleContext: BundleContext, serviceProviding: ServiceProviding)
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
- SimpleServiceWatching → ServiceWatching → DominoImplicits
-
val
capsuleContext: CapsuleContext
Dependency
Dependency
- Attributes
- protected
- Definition Classes
- SimpleServiceWatching → ServiceWatching
-
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()
-
val
serviceProviding: ServiceProviding
- Attributes
- protected
-
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
-
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
watchAdvancedServices[S <: AnyRef](filter: String)(f: (ServiceWatcherEvent[S]) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]
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
- Definition Classes
- ServiceWatching
-
def
watchServices[S <: AnyRef](f: (ServiceWatcherEvent[S]) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]
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
- Definition Classes
- ServiceWatching
-
def
whenAdvancedServicePresent[S <: AnyRef](filter: String)(f: (S) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]
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.
- Definition Classes
- ServiceWatching
- To do
Idea for roadmap: Fallback to another service if s is removed and another service of the type is available (reevaluate capsule).
-
def
whenServicePresent[S <: AnyRef](f: (S) ⇒ Unit)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[S], arg1: ClassTag[S]): ServiceTracker[S, S]
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
- Definition Classes
- ServiceWatching
-
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]
- Definition Classes
- ServiceWatching
-
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]
- Definition Classes
- ServiceWatching
-
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]
- Definition Classes
- ServiceWatching
-
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]
- Definition Classes
- ServiceWatching
Inherited from ServiceWatching
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