Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Pluggable Components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Pluggable Components" Watch "Pluggable Components" New topic

Pluggable Components

Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
Hi I am thinking about converting my existing code into pluggable component model. So whenever the user installs a new addon component the program should detect it and use it in the code.

Eclipse does this. Please suggest how can I approach this.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
Please give more discription about your product and technologies.

My blood is tested +ve for Java.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Google for Dependency Injection.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I'll add Dependency *Inversion* to Ilja's suggestion. HERE is something I did for my team because it is important to "plug in" new products and user groups for our system without changing the core. See if you spot Dependency *Injection* in the testing section. I didn't call it out by name because I hadn't heard of it yet when I made this.

If this kind of research & conversation grabs your interest, scroll on down to the OO, UML, etc. forum. We love this stuff down there.
[ June 07, 2005: Message edited by: Stan James ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: Pluggable Components
It's not a secret anymore!