ScalaModules Core

ScalaModules is a Scala DSL to ease OSGi development.

License

License

Categories

Categories

Scala Languages CLI User Interface
GroupId

GroupId

org.eclipse.scalamodules
ArtifactId

ArtifactId

scalamodules-core
Last Version

Last Version

2.0-M2
Release Date

Release Date

Type

Type

bundle
Description

Description

ScalaModules Core
ScalaModules is a Scala DSL to ease OSGi development.
Project URL

Project URL

http://www.eclipse.org/scalamodules/scalamodules-core
Project Organization

Project Organization

WeigleWilczek

Download scalamodules-core

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.scalamodules : scalamodules-scala-library jar 2.8.0.Beta1

provided (3)

Group / Artifact Type Version
org.osgi : org.osgi.core jar 4.2.0
org.osgi : org.osgi.compendium jar 4.2.0
org.scala-lang : scala-compiler jar 2.8.0.Beta1

test (5)

Group / Artifact Type Version
org.scalatest : scalatest jar 1.0.1-for-scala-2.8.0.Beta1-SNAPSHOT
org.scala-tools.testing : specs_2.8.0.Beta1 jar 1.6.4
org.mockito : mockito-all jar 1.8.4
junit : junit jar 4.7
org.apache.felix : org.apache.felix.framework jar 2.0.2

Project Modules

There are no modules declared in this project.

ScalaModules

ScalaModules is an elegant and intuitive domain specific language for OSGi development written in the Scala programming language.

Why would you need such a DSL? Because the OSGi API is rather low-level so that programming simple tasks, e.g. consuming an OSGi service, can be quite cumbersome. ScalaModules offers high-level abstractions for the most important OSGi concepts so that you can focus on what is to be done instead of how it should be done. Let’s look at a simple example:

context findServices withInterface[Greeting] withFilter "style".present andApply {
  (greeting, properties) => "%s: %s".format(properties("style"), greeting.welcome)
} match {
  case Nil => println("No Greeting service available!")
  case welcomes => welcomes foreach println
}

For further information please visit our Wiki or take a look at the examples.

ScalaModules is open source software licensed under the Apache 2.0 License. Just use it!

Versions

Version
2.0-M2
2.0-M1