On Sep 7, 10:13 am, Brian <[EMAIL PROTECTED]> wrote:
> Does this new SPI let me do
> this?http://groups.google.com/group/google-guice/browse_thread/thread/8d0a...
No, it won't let you build bindings just-in-time
based on the injection point.
This is something that we're frequently tempted
to support, but it seems too dynamic. It might
lend itself to hard-to-maintain applications - we
want lots of type safety and runtime binding
generation works against this.
But there's another new API that might be able
to get you close. You can use the new
InjectionPoint class to discover which binding
annotations are requested for a given type. If
you have a single entry point class, this might
do what you need:
http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/spi/InjectionPoint.html
Cheers,
Jesse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---