Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

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

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
23,871
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 29, 2010

Download the Example Code and PPT From http://java9s.com/spring-framework/spring-method-injection-and-bean-scopes
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

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:
see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • Thanks a lot.. it is a very nicely presented session. I started by seeing one session, but ended watching all of them. i really helped me to know the basics of Springs. Looking forward for some more session from Srinivas

  • Great work...wow! I think I've learned more than I have expected in about an hour than what I could have otherwise. Thanks

  • Very nice explanation, easy to understand.

  • good tutorial. Thanks for the work.

  • Nice explanation

    

  • Excellent work. This is nice explanation. No word to express my thanks.

  • You are very clear with concept ....Thhanks for ur nice tutorials

    Sujit

  • Nice One Bruv, London loves Ya. I like the simplicty.

  • Simple and clear. Thanks a lot.

  • hey great tutorial srinivas!! :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more