Dependency injection and aggregation/association
Posted
by Abhijeet Kashnia
on Stack Overflow
See other posts from Stack Overflow
or by Abhijeet Kashnia
Published on 2010-03-13T14:59:13Z
Indexed on
2010/03/13
15:05 UTC
Read the original article
Hit count: 503
In both association and aggregation, one class maintains a reference to another class.
Then, does constructor injection imply composition? Going by the same logic, is it safe to say that setter injection leads to an association, and not an aggregation?
© Stack Overflow or respective owner