Scala OSGi Metatype

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

Лицензия

Лицензия

Категории

Категории

Scala Языки программирования
Группа

Группа

org.helgoboss
Идентификатор

Идентификатор

scala-osgi-metatype
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

bundle
Описание

Описание

Scala OSGi Metatype
Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions
Ссылка на сайт

Ссылка на сайт

https://github.com/helgoboss/scala-osgi-metatype
Система контроля версий

Система контроля версий

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

Скачать scala-osgi-metatype

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.scalatest : scalatest_2.10 jar 1.9.1

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.0