I'd say, you might want to read about OSGi and Services first. After that you'll come up with that HelloWorld sample very quickly yourself :D
That's the short answer, the long one: First of all have a Interface say HelloWorldServiceInterface, just keep that interface in bundle "one" Now Create a Bundle "main" where you import the package where this interface resides, add a service tracker to your Activator class in that bundle which listenes for services Implementing this Interface HelloWorldServiceInterface. Now create another couple Bundles like two, three and four. All of them contain an Activator and an implementation of the Interface HelloWorlServiceInterface. The Activator registeres the implementation as service with the given Interface. Now make sure the Activator in the "main" bundle with the service tracker does call the "hello" method on the freshly tracked Service. There you go, your main bundle tracking other services (plugins if you like) gets notified in case a new service (plugin) is available and is capapble of calling it. All of this can be read in OSGi in Action, Instant OSGi starter and much more ... regards, Achim 2014-06-27 5:27 GMT+02:00 Bob Futrelle <bob.futre...@gmail.com>: > Say, I write a tiny Hello World app - a few lines. > What might be a simple example of a plugin that I could add to it? > > Though this is a super-simple question, I can't find any discussion > that describes how I might go about doing this. I figure that any > technology should be capable of describing a Hello World example. > > Ideas, examples, pointers? > > Thanks, > > - Bob Futrelle > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master