Thank you for the advice.

On Oct 28, 1:09 am, Bob Lee <[email protected]> wrote:
> 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