@CompileStatic class GormEventDispatcher extends AbstractPersistenceEventListener
Dispatches GORM events to the EventBus
| Modifiers | Name | Description |
|---|---|---|
protected EventBus |
eventBus |
|
protected boolean |
hasEventSubscribers |
|
protected boolean |
hasListeners |
|
protected Set<Class<? extends AbstractPersistenceEvent>> |
listenedForEvents |
|
protected List<GormAnnotatedListener> |
listeners |
|
protected Map<Class<? extends AbstractPersistenceEvent>, String> |
subscribedEvents |
| Fields inherited from class | Fields |
|---|---|
class AbstractPersistenceEventListener |
DEFAULT_ORDER, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor and description |
|---|
GormEventDispatcher(EventBus eventBus, Datastore datastore, Set<Class<? extends AbstractPersistenceEvent>> subscribedEvents, List<GormAnnotatedListener> listeners) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
|
boolean |
supportsEventType(Class<? extends ApplicationEvent> aClass) |
|
boolean |
supportsSourceType(Class<?> sourceType) |
| Methods inherited from class | Name |
|---|---|
class AbstractPersistenceEventListener |
equals, getClass, getListenerId, getOrder, hashCode, notify, notifyAll, onApplicationEvent, supportsAsyncExecution, supportsEventType, supportsSourceType, toString, wait, wait, wait |