Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading the Bean in two different ways

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator







Hi , upto my knowledge in spring i found two different ways for loading the Beans .

Please tell me what is the difference between these two ways of loading .the Beans

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the Spring Reference. (3.1. Introduction and "BeanFactory or ApplicationContext?" note).
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe ,

I have gone through Documents . It states that

"The ApplicationContext adds more enterprise-centric functionality to it compared to BeanFactory"
and One of them is Lazy Loading

Please tell me





Please tell me at what time these two cofigured beans are loaded actually when i use the above code .
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Christophe , Please tell me when actually when the lazy lazy-init bean and normal bean are loaded .
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If anybody knows this . Please answer .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic