class SimpleConfigurationWatching extends ConfigurationWatching
A class that mixes in the ConfigurationWatching trait. Use this if you want to use a class instead of a trait.
- Alphabetic
- By Inheritance
- SimpleConfigurationWatching
- ConfigurationWatching
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SimpleConfigurationWatching(DominoActivator: DominoActivator)
- new SimpleConfigurationWatching(osgiContext: OsgiContext, serviceConsuming: ServiceConsuming)
- new SimpleConfigurationWatching(capsuleContext: CapsuleContext, bundleContext: BundleContext, serviceConsuming: ServiceConsuming)
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
- SimpleConfigurationWatching → ConfigurationWatching
-
val
capsuleContext: CapsuleContext
Dependency
Dependency
- Attributes
- protected
- Definition Classes
- SimpleConfigurationWatching → ConfigurationWatching
-
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
serviceConsuming: ServiceConsuming
Dependency
Dependency
- Attributes
- protected
- Definition Classes
- SimpleConfigurationWatching → ConfigurationWatching
-
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
whenConfigurationActive(objectClassDefinition: ObjectClassDefinition)(f: (Map[String, Any]) ⇒ Unit): ServiceRegistration[ManagedService]
Like the same-named method which expects the service PID but takes the service PID from the given object class definition and registers a corresponding meta type provider so a nice configuration GUI will be created.
Like the same-named method which expects the service PID but takes the service PID from the given object class definition and registers a corresponding meta type provider so a nice configuration GUI will be created.
- objectClassDefinition
object class definition
- f
handler
- returns
the managed service registration
- Definition Classes
- ConfigurationWatching
-
def
whenConfigurationActive(servicePid: String, metaTypeProvider: Option[MetaTypeProvider] = None)(f: (Map[String, Any]) ⇒ Unit): ServiceRegistration[ManagedService]
Executes the given handler with the initial configuration or an empty map if none exists.
Executes the given handler with the initial configuration or an empty map if none exists. Whenever the configuration is changed, the capsules registered in the handler are stopped and the handler is executed again with the new configuration.
- servicePid
service PID
- metaTypeProvider
optional metatype provider
- f
handler
- returns
the managed service registration
- Definition Classes
- ConfigurationWatching
-
def
whenFactoryConfigurationActive(objectClassDefinition: ObjectClassDefinition)(f: (Map[String, Any], String) ⇒ Unit): ServiceRegistration[ManagedServiceFactory]
Like the same-named method which expects the service PID but takes the service PID from the given object class definition and registers a corresponding meta type provider so a nice configuration GUI will be created.
Like the same-named method which expects the service PID but takes the service PID from the given object class definition and registers a corresponding meta type provider so a nice configuration GUI will be created.
- objectClassDefinition
object class definition
- f
handler
- returns
the managed service factory registration
- Definition Classes
- ConfigurationWatching
-
def
whenFactoryConfigurationActive(servicePid: String, name: String, metaTypeProvider: Option[MetaTypeProvider] = None)(f: (Map[String, Any], String) ⇒ Unit): ServiceRegistration[ManagedServiceFactory]
Executes the given handler whenever a new factory configuration is created.
Executes the given handler whenever a new factory configuration is created. Whenever a factory configuration is changed, the correct capsules registered in the corresponding handler are stopped and the handler is executed again with the new factory configuration. When the factory configuration is removed, the corresponding capsules are stopped.
- servicePid
service PID
- name
descriptive name for the factory
- metaTypeProvider
optional metatype provider
- f
handler
- returns
the managed service factory registration
- Definition Classes
- ConfigurationWatching
Watch configurations
Methods for listening to configuration updates
Watch factory configurations
Methods for listening to factory configuration additions, updates and removals