April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Spring Dependency Injection
nTo use Spring Dependency Injection all you need is…
nPOJO with correct constructor (or setter)
nSpring bean defined in spring-config.xml
nAccess the Bean through the Spring context bean factory.
nPOJOs
nConstructor
nSetter
nDeclarative Dependency Injection with Spring Beans
nConstructor Injection
nSetter Injection
nLookup Method Injection