2.0-beta-5 released without a patched Guice!

1 view
Skip to first unread message

James Strachan

unread,
Apr 2, 2009, 11:23:30 AM4/2/09
to guice...@googlegroups.com
I've just released 2.0-beta-5 of GuiceyFruit which uses the latest
greatest trunk from Guice without any custom patches; instead
GuiceyFruit uses the new injectable type listener code in Guice.

Download a tarball here...
http://guiceyfruit.googlecode.com/svn/repo/releases/org/guiceyfruit/guiceyfruit/2.0-beta-5/

Or just use it from your Maven pom.xml
http://code.google.com/p/guiceyfruit/wiki/Maven

Everything's working fine apart from @PreDestroy hooks - other than
that its all looking good!

Many thanks to the Guice folks for adding the new injectable type
listener stuff!

--
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Aleksey Didik

unread,
Apr 7, 2009, 5:45:43 AM4/7/09
to guiceyfruit
Hi James.
Thanks for the great work.
I'll try to use beta-5 right now.
What is your plans about @PreDestroy?


On Apr 2, 8:23 pm, James Strachan <james.strac...@gmail.com> wrote:
> I've just released 2.0-beta-5 of GuiceyFruit which uses the latest
> greatest trunk from Guice without any custom patches; instead
> GuiceyFruit uses the new injectable type listener code in Guice.
>
> Download a tarball here...http://guiceyfruit.googlecode.com/svn/repo/releases/org/guiceyfruit/g...
>
> Or just use it from your Maven pom.xmlhttp://code.google.com/p/guiceyfruit/wiki/Maven

James Strachan

unread,
Apr 7, 2009, 8:20:40 AM4/7/09
to guice...@googlegroups.com
2009/4/7 Aleksey Didik <alekse...@gmail.com>:

> Hi James.
> Thanks for the great work.

You're most welcome!


> I'll try to use beta-5 right now.
> What is your plans about @PreDestroy?

Its currently working fine in trunk using this minor patch to Guice
described here...
http://code.google.com/p/google-guice/issues/detail?id=354&can=5

(That patch has been applied to the 2.0-SNAPSHOT.jar of guice-all in
the guiceyfruit maven repo).

You just need to close a scope for singleton scopes via

Injectors.close(injector);

or for a custom scope via

Injectors.close(injector, MyScope.class);

I've updated the lifecycles wiki page to reflect this...
http://code.google.com/p/guiceyfruit/wiki/Lifecycle


I'm hoping I can get some word from the guice folks soon on whether
they'll apply this patch or some other hook we can use (e.g. allowing
an InjectionListener to get its Binding so you can find the scope).
More background here...
http://groups.google.com/group/google-guice/browse_thread/thread/da6af0961cf4a5d6

If folks are interested in @PreDestroy it'd be good to star the patch
so they know its not just me wants this :)
http://code.google.com/p/google-guice/issues/detail?id=354&can=5

I'm really hoping we can avoid a patched Guice if we can really help
it - so I've my fingers and toes crossed that Jesse applies some kind
of patch we can use to implement this. 2.0-beta-6 is kinda ready to
release; but I'd love to get some feedback from the Guice folks before
releasing it; I'd be much happier releasing 2.0-beta-6 against an
unpatched Guice.

Reply all
Reply to author
Forward
0 new messages