• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring vs Pico container

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does Pico container compare with Spring ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PicoContainer is a component container, Spring is a component container and a lot more. Also, PicoContainer's implementation is somewhat trivial compared to Spring's.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
PicoContainer is a component container, Spring is a component container and a lot more. Also, PicoContainer's implementation is somewhat trivial compared to Spring's.


Lasse, i understand that Spring is IOC + more. But any idea as to how the IOC part of the 2 containers compare? I mean are you saying that Pico does'nt support the different types of wiring Spring's BeanFacttory / Application context does? If yes, would it be possible for you to give an example?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Karthik Guru:
Lasse, i understand that Spring is IOC + more. But any idea as to how the IOC part of the 2 containers compare? I mean are you saying that Pico does'nt support the different types of wiring Spring's BeanFacttory / Application context does? If yes, would it be possible for you to give an example?

Here's two examples:
(disclaimer: this is coming from what I read in "Spring in Action")

1) PicoContainer only supports programmatic configuration. In other words, you'd have to write your own bootstrapping class to register bean implementations with the container.

2) PicoContainer only supports one bean per class. In other words, if you want to configure two javax.sql.DataSources to your two databases, you're out of luck.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
 
Rob Harrop
Author
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep,

The PicoContainer IoC capabilities are nowhere near as extensive as Springs. Spring is definitely the most complete and sophisticated IoC container on the Java market.

Rob
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. I will get started with Spring soon.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic