First release candidate for peaberry 1.0

1 view
Skip to first unread message

Stuart McCulloch

unread,
Jan 6, 2009, 1:14:53 PM1/6/09
to guice...@googlegroups.com
Hi folks,

Happy new year!  FYI, I've just uploaded the first release candidate for peaberry 1.0:

   http://peaberry.googlecode.com/files/peaberry-1.0-rc1.zip

This build supports watching for services by registering "outjection" scopes, as follows:

   bind(Id.class).toProvider(service(Id.class).out(scopeImpl).single());

the watching scope will then get called as Id services are added, modified, or removed.
This ties in nicely with the fact that registries extend scopes, which means you could link
registries together dynamically if you wanted.

The util package has an AbstractScope that works like the ServiceTrackerCustomizer
if you prefer that style of API, or you can roll-your-own by implementing ServiceScope.
( Similarly there's now an AbstractDecorator to help make decoration much easier. )

The main API and builder DSL have both been cleaned up and made as orthogonal as
possible and I've fixed a couple of performance and functional bugs in the proxy caching
logic for multiple services. The proxy glue is now twice as fast as a standard JDK proxy :)

Note: this release does not directly support lifecycle management (or Eclipse extensions)
these will be added in the subsequent release and shouldn't require any noticable change
to the public API (at least that's my goal) - in fact they'll be provided as optional bundles.

Let me know if you find any bugs or missing/incorrect docs :)

--
Cheers, Stuart

Andreas Kollegger

unread,
Jan 6, 2009, 2:15:38 PM1/6/09
to guice...@googlegroups.com
Cheers to you Stuart, and thanks for the great work on peaberry. It has made working in OSGi a much more pleasant experience.

Best,
Andreas

Stuart McCulloch

unread,
Jan 7, 2009, 12:57:04 PM1/7/09
to guice...@googlegroups.com
2009/1/7 Andreas Kollegger <akoll...@gmail.com>
Cheers to you Stuart, and thanks for the great work on peaberry. It has made working in OSGi a much more pleasant experience.

thanks for the kind words Andreas, once enough people have tested this release candidate I hope to finally release 1.0 and upload it to the central Maven repository - so looking forward to hearing from other users :)

--
Cheers, Stuart
Reply all
Reply to author
Forward
0 new messages