You needn't implement the providers manually:

@Singleton
public class GreetingServiceImpl extends RemoteServiceServlet
    implements GreetingService {
       @Inject private Provider<ServerDAO> serverDAOProvider;
       @Inject private Provider<ServiceDAO> serviceDAOProvider;
...

@RequestScoped
public class ServerDAO extends Updater<Server, ServerDTO> {
       @Inject private Provider<ServiceDAO> serviceDAOProvider;

       @Inject public Server update(Server entity, ServerDTO dto) {
               System.out.println(+serviceDAOProvider); // Null !
...

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