Modular Software with PicoContainer

August 5, 2004 at 7:09 am Leave a comment


Most OO systems claim to be modular but very few really are. Normally OO systems have cycles between they modules. Even if there are no cycles the dependencies between the so called modules are chaotic and inflexible. A typical result is that developers can’t instantiate a small set of classes for unit testing without having the rest of the system.

PicoContainer is an open-source project that provides a IoC-Container (IoC = Inversion of Control) that is very useful for defining and managing the dependencies between modules.

I collegue asked me once when I would PicoContainer into a project:

  • Right from the beginning?
  • Even for prototyping?
  • When the system exceeds a certain size?

I think that projects should use PicoContainer right from the beginning and even for prototypes. Even for very small prototypes PicoContainer pays off measured in Lines of Code and it adds very small overhead to the project.

Adding PicoContainer later to a project results in refactoring and will therefore often not done.

Entry filed under: Uncategorized. Tags: .

Windsurf-Tipps C-JDBC: open-source inexpensive DB clustering

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed



%d bloggers like this: