Also tried this some time ago and failed. Looked through the guice source 
and wasn't able to find a way. This would be pretty useful for example for 
custom loggers. (Loggers which are injectable through constructors too, not 
only fields)

Am Dienstag, 13. Mai 2014 05:16:02 UTC+2 schrieb Linead:
>
> Hi, 
>
> I'm trying to integrate into an old system while providing full BC, this 
> will replace old code with injector.getInstance(Class) calls.
>
> I would like to provide customized JIT bindings to allow for scope 
> selection based on subclass ( e.g if(class instanceof CustomSingleton) { 
> set scope to singlet } )
> I've searched the the guice code for a way to do this but there's nothing 
> that seems to allow for me to override the creation of a JIT binding.
>
> Can anyone advise if there's a way this can be done?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/d/optout.

Reply via email to