Contains adapters which translate the Scala OSGi Metatype interfaces to the ones defined in the native OSGi API.
Contains builder objects for easily creating Scala OSGi metatypes.
Contains builder objects for easily creating Scala OSGi metatypes.
The following example demonstrates how you can describe configuration parameters for a service.
import domino.scala_osgi_metatype.builders._ val myObjectClass = ObjectClass( id = "domino.my_service", name = "My configurable service", requiredAttributes = List( ElementaryAttribute[Int](id = "size", name = "Size", default = Some(5)), ElementaryAttribute[String](id = "user", name = "User", default = Some("root")) ) )
Contains Scala traits which accurately model the facilities of the OSGi Metatype API.
Contains Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions. OSGi Metatype descriptions are very well suited for quickly providing administration user interfaces.
You probably want to check out the builders.
I created totally new Scala interfaces and adapters instead of directly implementing the Java interfaces of the OSGi Metatype API in order to prevent name clashes and confusion about what method to call. Scala Swing does it the same way, I guess for the same reasons.