Packages

  • package root
    Definition Classes
    root
  • package domino

    Contains Domino, a lightweight Scala library for writing elegant OSGi bundle activators.

    Contains Domino, a lightweight Scala library for writing elegant OSGi bundle activators.

    For getting started, please see DominoActivator, the main entry point to the Domino DSL. Each sub package contains functionality for a specific part of the DSL.

    Definition Classes
    root
  • package scala_osgi_metatype

    Contains Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions.

    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.

    Definition Classes
    domino
    Note

    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.

  • package adapters

    Contains adapters which translate the Scala OSGi Metatype interfaces to the ones defined in the native OSGi API.

    Contains adapters which translate the Scala OSGi Metatype interfaces to the ones defined in the native OSGi API.

    Definition Classes
    scala_osgi_metatype
  • AttributeDefinitionAdapter
  • ElementaryAttributeDefinitionAdapter
  • ListAttributeDefinitionAdapter
  • MetaTypeProviderAdapter
  • ObjectClassDefinitionAdapter
  • package builders

    Contains builder objects for easily creating Scala OSGi metatypes.

    Contains builder objects for easily creating Scala OSGi metatypes.

    Example

    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"))
      )
    )
    Definition Classes
    scala_osgi_metatype
  • package interfaces

    Contains Scala traits which accurately model the facilities of the OSGi Metatype API.

    Contains Scala traits which accurately model the facilities of the OSGi Metatype API.

    Definition Classes
    scala_osgi_metatype

package adapters

Contains adapters which translate the Scala OSGi Metatype interfaces to the ones defined in the native OSGi API.

Linear Supertypes
AnyRef, Any

Type Members

  1. abstract class AttributeDefinitionAdapter[T] extends AttributeDefinition

    Provides the given Scala attribute definition as an OSGi-compliant attribute definition.

  2. class ElementaryAttributeDefinitionAdapter[T] extends AttributeDefinitionAdapter[T]

    Provides the given Scala elementary attribute definition as an OSGi-compliant attribute definition.

  3. class ListAttributeDefinitionAdapter[T] extends AttributeDefinitionAdapter[T]

    Provides the given Scala list attribute definition as an OSGi-compliant attribute definition.

  4. class MetaTypeProviderAdapter extends MetaTypeProvider

    Provides the given Scala meta type provider as an OSGi-compliant meta type provider.

    Provides the given Scala meta type provider as an OSGi-compliant meta type provider.

    This one should be registered along with a org.osgi.service.cm.ManagedService or org.osgi.service.cm.ManagedServiceFactory to make the metatype data available to the OSGi framework.

  5. class ObjectClassDefinitionAdapter extends ObjectClassDefinition

    Provides the given Scala object class definition as an OSGi-compliant object class definition.

Inherited from AnyRef

Inherited from Any

Ungrouped