Scala OSGi Metatype

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

License

License

Categories

Categories

Scala Languages
GroupId

GroupId

org.helgoboss
ArtifactId

ArtifactId

scala-osgi-metatype
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

Scala OSGi Metatype
Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions
Project URL

Project URL

https://github.com/helgoboss/scala-osgi-metatype
Source Code Management

Source Code Management

https://github.com/helgoboss/scala-osgi-metatype

Download scala-osgi-metatype

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.0
org.osgi : org.osgi.core jar 4.3.0
org.osgi : org.osgi.compendium jar 4.3.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.scalatest : scalatest_2.10 jar 1.9.1

Project Modules

There are no modules declared in this project.

ATTENTION: scala-osgi-metatype is now included in Domino! This repository is deprecated.

Scala OSGi Metatype

Scala OSGi Metatype is basically the OSGi Metatype API translated to idiomatic Scala. It contains interfaces, adapters and builders for easily building OSGi Metatype descriptions.

For those who don't know the OSGi Metatype API, it's a very practical addition to the OSGi ConfigurationAdmin API for describing configuration GUIs.

Example

The following example demonstrates how you can describe configuration parameters for a service.

import org.helgoboss.scala_osgi_metatype.builders._

val myObjectClass = ObjectClass(
  id = "org.helgoboss.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"))
  )
)

Documentation

  • Scaladoc

Further reading

Scala OSGi Metatype is nicely integrated into the Domino library. You might want to have a look at its user guide.

Versions

Version
1.0.0