@groovy.transform.AutoFinal @groovy.transform.CompileStatic class GormEventDispatcher extends AbstractPersistenceEventListener
Dispatches GORM events to the EventBus
| Modifiers | Name | Description |
|---|---|---|
protected EventBus |
eventBus |
|
protected boolean |
hasEventSubscribers |
|
protected boolean |
hasListeners |
|
protected java.util.Set<java.lang.Class<? extends AbstractPersistenceEvent>> |
listenedForEvents |
|
protected java.util.List<GormAnnotatedListener> |
listeners |
|
protected java.util.Map<java.lang.Class<? extends AbstractPersistenceEvent>, java.lang.String> |
subscribedEvents |
| Fields inherited from class | Fields |
|---|---|
class AbstractPersistenceEventListener |
datastore |
| Constructor and description |
|---|
GormEventDispatcher(EventBus eventBus, Datastore datastore, java.util.Set<java.lang.Class<? extends AbstractPersistenceEvent>> subscribedEvents, java.util.List<GormAnnotatedListener> listeners) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
|
boolean |
supportsEventType(java.lang.Class<? extends ApplicationEvent> aClass) |
|
boolean |
supportsSourceType(java.lang.Class<?> sourceType) |
| Methods inherited from class | Name |
|---|---|
class AbstractPersistenceEventListener |
getOrder, isValidSource, onApplicationEvent, onPersistenceEvent, supportsSourceType |