I'll give the issue some context just in case...

I'm developing a (very) simple ActionDispatcher. It's a sevlet that
has a service which returns a given "Action" (like Struts) based on
the URL matching a regular expression.

The map is in fact like this Map<RegularExpression, Action>

so I do something like this

for each Entry
  if Entry.Key matches givenUrl return Entry.Value
end

That map (that I call actionMap) should be injected in my
dispatcher.... but I want the actions inside the map (the values)
injected as well (they have some services and stuff).


Do you know how to achieve this?
On Aug 27, 11:10 am, Pablo Fernandez <[email protected]>
wrote:
> Hi,
>
> I've got this Map<K,V> with arbitrary keys, and some objects as
> values.
>
> I want the map injected into another object, but I want the objects
> inside the Map to be injected as well.
>
> Any ideas how to achieve this? do I have to create a provider and
> manually call the injector for every map value?
--~--~---------~--~----~------------~-------~--~----~
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