April 05
Prof. Ismael H. F. Santos -
ismael@tecgraf.puc-rio.br
2
Dependency Injection
n
Methods of injection
n
via Setters
n
via Constructors
n
n
n
n
n
Objects that can be injected
n
Simple types: strings and numbers
n
Collection types: list, set, and maps
n
Other beans
The DAO would be injected with a Session/Connection object