Bindforge (bindforge.org) might be an alternative to Declarative Service, it uses a scala DSL (rather than XML) for configuration.
The maven example runs after installing these bundles:
[ 78] [Active ] [ 5] mvn:bindforge/bindforge-example
[ 80] [Active ] [ 5] http://repository.tuxed.de/bindforge/bindforge-core/0.7.2/bindforge-core-0.7.2.jar
[ 81] [Active ] [ 5] mvn:org.ops4j/peaberry
[ 83] [Active ] [ 5] http://repository.ops4j.org/mvn-snapshots/org/ops4j/peaberry/dependencies/aopalliance/1.0-SNAPSHOT/aopalliance-1.0-20090522.093049-3.jar
[ 84] [Active ] [ 5] http://repository.ops4j.org/mvn-snapshots/org/ops4j/peaberry/dependencies/guice/2.0-SNAPSHOT/guice-2.0-20090522.092928-3.jar
[ 85] [Active ] [ 5] file:///tmp/peaberry.activation-1.2-SNAPSHOT.jar
the latest was taken from the bindforge downloadable zip.
For now I've not evaluated advantages/disdvantages just gave it a try
Costs of adding it to the platform
these are the sizes of the bundles the distribution contains:
8.0K aopalliance-1.0-SNAPSHOT.jar
104K bindforge-core-0.7.2.jar
668K guice-2.0-SNAPSHOT.jar
92K pax-logging-api-1.3.0.jar
424K pax-logging-service-1.3.0.jar
204K peaberry-1.1.jar
20K peaberry.activation-1.2-SNAPSHOT.jar
3.6M scala-library-2.7.5.jar
As most things are already included in the platform, what is need is the following:
8.0K aopalliance-1.0-SNAPSHOT.jar
104K bindforge-core-0.7.2.jar
668K guice-2.0-SNAPSHOT.jar
204K peaberry-1.1.jar
20K peaberry.activation-1.2-SNAPSHOT.jar
giving a grant total of (a bit less than) 1MB
Comments (1)
Aug 31, 2009
Reto Bachmann says:
for a comparison DS and peaberry:for a comparison DS and peaberry: http://rinswind.blogspot.com/2009/05/service-dynamics-lazy-mans-way.html