Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public void handleEvent(Event ev) {
   System.out.println("Receive an event : " + ev);
 }

Download

You can download the event handler. Binary is available here (Jar compiled with Java 1.5). Source are available here.
Sources are hosted inside the Felix sandbox on http://svn.apache.org/repos/asf/felix/sandbox/clement/event.handler.

How does it work?

The handler will parse the description provided in the metadata, and register for you the EventHandler in the OSGi Registry. Your POJO will receive each event through the handler. With this handler you can specify different callback methods for different topics.

...