com.beust.jbus
Interface IBus

All Known Implementing Classes:
JBus

public interface IBus


Method Summary
 void post(Object event)
          Post an object on the bus.
 void post(Object event, String[] categories)
          Post an object on the bus with the specified categories.
 void register(Object object)
          Register this object to receive notifications.
 void unregister(Object object)
          Unregister an object from the bus.
 

Method Detail

register

void register(Object object)
Register this object to receive notifications. The object passed in parameter will be searched for any method annotated with @{link @Subscriber} and each of these methods will be invoked if an object posted on the bus matches its parameter.


unregister

void unregister(Object object)
Unregister an object from the bus.


post

void post(Object event)
Post an object on the bus.


post

void post(Object event,
          String[] categories)
Post an object on the bus with the specified categories. Only subscribers whose category pattern matches at least one of these categories will be invoked.



Copyright © 2010. All Rights Reserved.