Skip to content
Advertisement

Tag: inject

Expose Map from guice private Module

I am trying to expose a map from private module similar to Expose Map in private guice module but getting an error Could not expose() java.util.Map annotated with @com.google.inject.name.Named(value=myMap), it must be explicitly bound. I have written this code: Also in another class where I am injecting it, it gives: No implementation for java.util.Map<java.lang.String, java.lang.String> was bound. Please check. thanks

Advertisement