Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Containers

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply mark.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic