javax.event
Interface Event<T>

Type Parameters:
T - the type of the event object

public interface Event<T>

An interface for firing events of a particular type, and registering observers for events of that type.

Author:
Gavin King, Pete Muir

Method Summary
 void fire(T event, java.lang.annotation.Annotation... bindings)
          Fire an event
 void observe(Observer<T> observer, java.lang.annotation.Annotation... bindings)
          Register an observer for a specific type
 

Method Detail

fire

void fire(T event,
          java.lang.annotation.Annotation... bindings)
Fire an event

Parameters:
event - the event type
bindings - the event bindings

observe

void observe(Observer<T> observer,
             java.lang.annotation.Annotation... bindings)
Register an observer for a specific type

Parameters:
observer - the observer to register
bindings - the bindings to observe the event for


Copyright © 2008-2009. All Rights Reserved.