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
  • 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
  • AttributeDefinition
  • ElementaryAttributeDefinition
  • ListAttributeDefinition
  • MetaTypeProvider
  • ObjectClassDefinition
  • Password
  • ValidationResult

package interfaces

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. interfaces
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AttributeDefinition[T] extends AnyRef

    An interface to describe an attribute.

    An interface to describe an attribute. Interface modeled after org.osgi.service.metatype.AttributeDefinition.

  2. trait ElementaryAttributeDefinition[T] extends AttributeDefinition[T]

    An interface to describe a attribute with a single value.

    An interface to describe a attribute with a single value. Interface modeled after org.osgi.service.metatype.AttributeDefinition with a cardinality of 0.

  3. trait ListAttributeDefinition[T] extends AttributeDefinition[T]

    An interface to describe a attribute with a single value.

    An interface to describe a attribute with a single value. Interface modeled after org.osgi.service.metatype.AttributeDefinition with a cardinality of 0.

  4. trait MetaTypeProvider extends AnyRef

    Provides access to metatypes.

    Provides access to metatypes. Interface modeled after org.osgi.service.metatype.MetaTypeProvider.

  5. trait ObjectClassDefinition extends AnyRef

    Description for the data type information of an objectclass.

    Description for the data type information of an objectclass. Interface modeled after org.osgi.service.metatype.ObjectClassDefinition.

  6. case class Password(password: String) extends Product with Serializable

    A value type applicable to AttributeDefinition.

    A value type applicable to AttributeDefinition. Maps to org.osgi.service.metatype.AttributeDefinition.PASSWORD.

    password

    The wrapped password

  7. sealed trait ValidationResult extends AnyRef

    Represents a validation result of AttributeDefinition.

    Represents a validation result of AttributeDefinition. Possible values are defined in the companion object.

Value Members

  1. object ValidationResult

    Contains the possible validation results.

Inherited from AnyRef

Inherited from Any

Ungrouped