I guess it is available in Guice 2.0 ?

Cheers,
Anthony


2009/3/9 Dhanji R. Prasanna <[email protected]>

> No, but you can override a bunch of module bindings using
> Module.override().
>
>
> On Tue, Mar 10, 2009 at 1:21 AM, Anthony MULLER 
> <[email protected]>wrote:
>
>> Hello,
>>
>> When we write @ImplementedBy on an interface, we are writing a default
>> binding. This binding can be redefined in a module.
>>
>> Is it possible to write a "default" binding into a module?
>>
>> like:
>> bind(ITotoService.class).to(DefaultTotoImplementation.class).byDefault();
>>
>> and to ba able to redefined the binding :
>>
>> like: bind(ITotoService.class).to(CustomTotoImplementation.class);
>>
>> Of course, a default binding can be redefine only once (like
>> @ImplementedBy behaviour).
>>
>> Cheers,
>> Anthony
>>
>>
>>
>
> >
>

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