On 6 Jan 2012, at 09:57, Joseph wrote:

> Hi
> 
> I'm integrating some pre guice framework having already a notion of
> injection, namely wonder.
> 
> As we want all the bindings to be done in one place, we plan to make
> them all the guice way, by using a AbstractWonderModule which
> overridden bind(Class aClass) to hook in and check whether this class
> extends one of the 2 common parents of all wonder classes.
> 
> However, there are plenty of way one can specify binding in guice, for
> example one could use a wonder class as implementation.
> 
> Is there a way to hook into Guice to make it fail if ever it starts to
> handle some of this wonder related classes?

You can use the binding SPI to validate bindings:

   http://code.google.com/p/google-guice/wiki/ExtendingGuice

HTH

> Thanks in advance
> 
> Best
> Joseph
> 
> -- 
> 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.
> 

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

Reply via email to