Hi Grace,

could you attach the entire source code of the provider that you've
implemented?

Tks, Rodrigo
On Wed, Oct 1, 2008 at 12:36 AM, Grace <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
>   It takes less than 1/2 sec to create the injector when I only have
> bindings from interfaces to regular classes.
>
> But once I bind provider,
>
> public class VehicleProvider implements Provider<IVehicle>{
>
> }
>
>
>
> binder.bind(IVehicle.class).toProvider(VehicleProvider.class).in(Scopes.SINGLETON),
>
> it takes more than 10 secs to create the injector.
> How come there is such great difference?  If I care about speed,
> should I avoid using provider?
>
> Thanks, Grace
> >
>


-- 
Rodrigo M. do Prado
[EMAIL PROTECTED]

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