• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Spring vs Pico container

 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How does Pico container compare with Spring ?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.
 
Author
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys. I will get started with Spring soon.
 
Whatever you say buddy! And I believe this tiny ad too:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic