Niclas Hedhman wrote:
On Sunday 29 April 2007 10:12, Tim Moloney wrote:
Am I missing something obvious or should I just stick with the listener
pattern?

uuuuuhhh... White-Board pattern is about the registration (of the listeners), and doesn't concern itself with what it is used for.

So, instead of;

 MyService service = doSomeLookupAndDealWithDynamism( MyService.class );
 service.addZoutListener( listener );

you would do;

 bundleContext.registerService( ZoutListener.class, listener, null );


Cheers
Niclas

Then the event source could have a ZoutListener ServiceTracker and send the event to all the currently registered ZoutListeners.

I was confusing myself.  I new that I must have been missing the obvious.

Thanks,
 Tim

Reply via email to