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