Hi, I new with Guice, and I'm still a bit confused about how it
works..

I have a ConfigurationModule like this:

public class Configuration extends AbstractModule {

       protected void configure() {
            ....
             bind(GatewaysConfiguration.class).toInstance(new
GatewaysConfiguration(gatewaysConfigFile, timeout));
             bind(GatewayPool.class).toInstance(new GatewayPool());
       }

       .....
}

and GatewayPool:

public class GatewayPool {
   @Inject
   private GatewaysConfiguration configuration;
    ......
   public GatewayPool {
      configuration.doSomething();
   }
}

Well.. the question is simple: how can I inject GatewaysConfiguration
in GatewayPool inside the Module?

Thanks,
Hugo.
(Sorry if the post is duplicated, I click send by mistake)

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