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/
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.