public abstract class EventSourceAdapter<EventAtom> extends java.lang.Object implements EventSource<EventAtom>
Constructor and Description |
---|
EventSourceAdapter(EventSourceSpecification<EventAtom> specification,
EventRealm realm) |
Modifier and Type | Method and Description |
---|---|
boolean |
addHandler(EventHandler<EventAtom> handler) |
void |
dispose() |
EventRealm |
getRealm() |
EventSourceSpecification<EventAtom> |
getSourceSpecification() |
void |
notifyHandlers(Event<EventAtom> event) |
boolean |
removeHandler(EventHandler<EventAtom> handler) |
public EventSourceAdapter(EventSourceSpecification<EventAtom> specification, EventRealm realm)
public EventSourceSpecification<EventAtom> getSourceSpecification()
getSourceSpecification
in interface EventSource<EventAtom>
public EventRealm getRealm()
getRealm
in interface EventSource<EventAtom>
public boolean addHandler(EventHandler<EventAtom> handler)
public boolean removeHandler(EventHandler<EventAtom> handler)
public void dispose()
dispose
in interface EventSource<EventAtom>