PicoContainer
  1. PicoContainer
  2. PICO-396

Allow injecting multiple components via Iterable<S>

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Often a constructor in a component will only copy the collection of objects from the parameter into a collection in the field (commonly using Guava's ImmutableList.copyOf()).

      IDEA tends to recommend changing this sort of thing to Iterable, but if I change it to Iterable, PicoContainer says that it doesn't know how to inject that. To meet it half way, I inject it as Collection, but it would be nice if Iterable would work as well.

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Trejkaz
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated: