I have a guice module added to the injector using
injector = Guice.createInjector(…
but its configure method is never called.
Is there something I m missing?.
injector = Guice.createInjector(....,new XModule(),....
import net.spy.memcached.MemcachedClient;
import com.google.inject.AbstractModule;
public class XModule extends AbstractModule {
@Override
protected void configure() {
//Never called
}
}
Configure is only called when the injection is actually hit. i.e. when you try an inject an object of that type. Dumb question sorry.