@groovy.transform.AutoFinal @groovy.transform.CompileStatic class GormEventDispatcher extends org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener
Dispatches GORM events to the EventBus
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
GORM_NAMESPACE |
|
protected EventBus |
eventBus |
|
protected boolean |
hasEventSubscribers |
|
protected boolean |
hasListeners |
|
protected java.util.Set<java.lang.Class<? extends org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent>> |
listenedForEvents |
|
protected java.util.List<GormAnnotatedListener> |
listeners |
|
protected java.util.Map<java.lang.Class<? extends org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent>, java.lang.String> |
subscribedEvents |
Fields inherited from class | Fields |
---|---|
class org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener |
DEFAULT_ORDER, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor and description |
---|
GormEventDispatcher(EventBus eventBus, org.grails.datastore.mapping.core.Datastore datastore, java.util.Set<java.lang.Class<? extends org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent>> subscribedEvents, java.util.List<GormAnnotatedListener> listeners) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
onPersistenceEvent(org.grails.datastore.mapping.engine.event.AbstractPersistenceEvent event) |
|
boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> aClass) |
|
boolean |
supportsSourceType(java.lang.Class<?> sourceType) |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener |
org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#getOrder(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#onApplicationEvent(org.springframework.context.ApplicationEvent), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#supportsSourceType(java.lang.Class), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#wait(long, int), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#wait(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#wait(long), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#equals(java.lang.Object), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#toString(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#hashCode(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#getClass(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#notify(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#notifyAll(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#supportsEventType(java.lang.Class), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#getListenerId(), org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener#supportsAsyncExecution() |