This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Loading the Bean in two different ways Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Loading the Bean in two different ways " Watch "Loading the Bean in two different ways " New topic
Author

Loading the Bean in two different ways

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234








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


Save India From Corruption - Anna Hazare.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Check the Spring Reference. (3.1. Introduction and "BeanFactory or ApplicationContext?" note).


[My Blog]
All roads lead to JavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Joined: Apr 18, 2009
Posts: 2234

Hi Christophe , Please tell me when actually when the lazy lazy-init bean and normal bean are loaded .
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

If anybody knows this . Please answer .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Loading the Bean in two different ways
 
Similar Threads
Spring: Setter Injection on non-public class
difference between in pool and out of pool
what should be the first servlet to display when application launches?
What is the difference between Class.forName() and DriverManager.registerDriver() ?
loading properties file