wood burning stoves 2.0*
The moose likes Spring and the fly likes How Spring manages beans inside? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How Spring manages beans inside?" Watch "How Spring manages beans inside?" New topic
Author

How Spring manages beans inside?

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

It was asked to me in an interview.

Can anyone help me in finding its answer.


My Blog SCJP 5 SCWCD 5
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

The base container interface is BeanFactory... but that's a really broad question...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Thanks Nathan.


Looking for more replies.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Spring internals could fill a small book. What specific type of information are you looking for?

Have you looked at the source code and are having a problem with a specific area?
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I am looking for the design they are using to maintain the information about beans and the process how they create it? How the beans are maintained inside? What type of data structure they use?

I havn't looked at the source code. I want to know all this just to be aware that what happens inside.

Thanks David for the reply.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

How about HashMaps.

Yep the BeanFactory is just a set of glorified HashMaps. So is Hibernate's SessionFactory.

Yes, there is a bit more to it than just that, but in terms of storage, that is what it uses.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Craig Taylor
Ranch Hand

Joined: Jul 17, 2008
Posts: 64
Hashmaps with an occasional proxy tossed in for fun - that's all it is.

The rest is smoke and mirrors (sometimes fire depending upon your app).


Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Craig Taylor wrote:(sometimes fire depending upon your app).




Nice!

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Spring manages beans inside?
 
Similar Threads
How many Brits and Europeans on this board?
acronym atrocity
Google India CodeJam
A Challenge!
13 Nov Riddle