aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring Containers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Containers" Watch "Spring Containers" New topic
Author

Spring Containers

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi All,

I always thought spring had two containers.

1).BeanFactory
2). ApplicationContext

Am I true?/ My friend keeps on saying that there is no container at all for spring.

Thanks.


Be Humble... Be Nice.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Well, yes the BeanFactory and ApplicationContext can be considered a "container" but not like a web container or ejb container. a Container in such that it holds your instance of your Spring Beans inside a "glorified map" as I like to call it. It handles the lifecycle of your objects, like a container would do. But it isn't a monolithic object, so to speak, as say compared to a real full "container"

It is just symantics here that you disagree with your friend. His definition of container is not the same definition of container that you have. It really isn't about Spring itself.

Mark


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

Joined: Nov 10, 2007
Posts: 627
Thanks for your reply mark.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Containers