org.eclipse.incquery.runtime.evm.api.event.adapter

## Class EventSourceAdapter<EventAtom>

- java.lang.Object
- - org.eclipse.incquery.runtime.evm.api.event.adapter.EventSourceAdapter<EventAtom>

- All Implemented Interfaces:
    EventSource<EventAtom>
  Direct Known Subclasses:
    IncQueryEventSource

      public abstract class EventSourceAdapter<EventAtom>
      extends java.lang.Object
      implements EventSource<EventAtom>

  Author:
    Abel Hegedus

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EventSourceAdapter(EventSourceSpecification<EventAtom> specification, EventRealm realm)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EventSourceAdapter

          public EventSourceAdapter(EventSourceSpecification<EventAtom> specification,
                                    EventRealm realm)

  - ### Method Detail

    - #### getSourceSpecification

          public EventSourceSpecification<EventAtom> getSourceSpecification()

      Specified by:
        `getSourceSpecification` in interface `EventSource<EventAtom>`

    - #### getRealm

          public EventRealm getRealm()

      Specified by:
        `getRealm` in interface `EventSource<EventAtom>`

    - #### addHandler

          public boolean addHandler(EventHandler<EventAtom> handler)

    - #### removeHandler

          public boolean removeHandler(EventHandler<EventAtom> handler)

    - #### notifyHandlers

          public void notifyHandlers(Event<EventAtom> event)

    - #### dispose

          public void dispose()

      Specified by:
        `dispose` in interface `EventSource<EventAtom>`