PicoContainer

Difference in behavior SetterInjector vs. ConstructorInjector

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.8
  • Fix Version/s: None
  • Component/s: PicoContainer (Java)
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

I use PicoContainer to setup my domain model and I would like my collections to be filled. But when i use the SetterInjector collections only get filled with there type. This behavior is unlike the constructorInjector that will also fill the collections with all beans that match the type of the collection. I've added a test cas to demonstrate my point.

Activity

Hide
Paul Hammant added a comment -

Logic for Ctor Injection copied to Setter Injection

Show
Paul Hammant added a comment - Logic for Ctor Injection copied to Setter Injection

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: