Skip to content
This repository

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

branch: master

Merge pull request #36 from samhendley/master

Update to your build files to build scalamodules for 2.9.0 and 2.9.0-1
latest commit 1e3fe60e9c
Heiko Seeberger authored January 11, 2012
Octocat-spinner-32 core-it re #34: Switched to Apache license. January 16, 2011
Octocat-spinner-32 core re #34: Switched to Apache license. January 16, 2011
Octocat-spinner-32 project Published 2.0.3 for scala 2.8.1, 2.9.0, 2.9.0-1, 2.9.1 January 10, 2012
Octocat-spinner-32 .gitignore Removed project/plugins/project form Git repo and adjusted .gitignore. July 29, 2010
Octocat-spinner-32 README.textile Fixed README. January 19, 2011
README.textile

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!

Something went wrong with that request. Please try again.