4 - Spring Method Injection and Bean Scope - Spring Framework Video Tutorial

http://www.youtube.com/watch?v=_IWXG3Y-qjAendofvid [starttext] This video tutorial elobarates about the Spring Method Injection and Spring Bean Scopes. Spring Framework has this wonderful feature of Method Injection to control what kind of methods need to be executed and also what kind of return types should be returned by the Spring Framework.
There are two types of Method Injection - The first one is the Replace Method using Method Replacer and the Second one is the Look up Method which is used to return a different return type than the conventional return type already defined in the Class.
Regarding the Bean scope, i have discussed the importance of Singleton and Prototype scopes. The singleton scope defined beans will only have one instance created for the entire life and with the scope defined as prototype, there will be n number of instances that will be created with n number of call to getBean() method of the Spring Framework.

Please remember that you need to have CGLIB-NODEPS jar in the classpath to execute this example.
You can find the source code from the website http://java9s.com
[endtext]

Check out this stream