public class DomainEventListener extends AbstractPersistenceEventListener implements MappingContextListener
An event listener that provides support for GORM domain events.
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
EVENT_AFTER_DELETE |
|
private static java.lang.String |
EVENT_AFTER_INSERT |
|
private static java.lang.String |
EVENT_AFTER_LOAD |
|
private static java.lang.String |
EVENT_AFTER_UPDATE |
|
private static java.lang.String |
EVENT_BEFORE_DELETE |
|
static java.lang.String |
EVENT_BEFORE_INSERT |
|
private static java.lang.String |
EVENT_BEFORE_LOAD |
|
private static java.lang.String |
EVENT_BEFORE_UPDATE |
|
private static java.util.List<java.lang.String> |
REFRESH_EVENTS |
|
static java.lang.Class[] |
ZERO_PARAMS |
|
private boolean |
autowireEntities |
|
private java.util.Map<PersistentEntity, java.util.Map<java.lang.String, java.lang.reflect.Method>> |
entityEvents |
Fields inherited from class | Fields |
---|---|
class AbstractPersistenceEventListener |
datastore |
Constructor and description |
---|
DomainEventListener
(Datastore datastore) |
protected DomainEventListener
(ConnectionSourcesProvider connectionSourcesProvider, MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
private void |
activateDirtyChecking(EntityAccess ea) |
|
public void |
afterDelete(PersistentEntity entity, EntityAccess ea) |
|
public void |
afterDelete(PersistentEntity entity, EntityAccess ea, PostDeleteEvent event) |
|
public void |
afterInsert(PersistentEntity entity, EntityAccess ea) |
|
public void |
afterInsert(PersistentEntity entity, EntityAccess ea, PostInsertEvent event) |
|
public void |
afterLoad(PersistentEntity entity, EntityAccess ea) |
|
public void |
afterLoad(PersistentEntity entity, EntityAccess ea, PostLoadEvent event) |
|
public void |
afterUpdate(PersistentEntity entity, EntityAccess ea) |
|
public void |
afterUpdate(PersistentEntity entity, EntityAccess ea, PostUpdateEvent event) |
|
protected void |
autowireBeanProperties(java.lang.Object entity) |
|
public boolean |
beforeDelete(PersistentEntity entity, EntityAccess ea) |
|
public boolean |
beforeDelete(PersistentEntity entity, EntityAccess ea, PreDeleteEvent event) |
|
public boolean |
beforeInsert(PersistentEntity entity, EntityAccess ea) |
|
public boolean |
beforeInsert(PersistentEntity entity, EntityAccess ea, PreInsertEvent event) |
|
public void |
beforeLoad(PersistentEntity entity, EntityAccess ea) |
|
public void |
beforeLoad(PersistentEntity entity, EntityAccess ea, PreLoadEvent event) |
|
public boolean |
beforeUpdate(PersistentEntity entity, EntityAccess ea) |
|
public boolean |
beforeUpdate(PersistentEntity entity, EntityAccess ea, PreUpdateEvent event) |
|
private void |
createEventCaches(PersistentEntity entity) |
|
private void |
findAndCacheEvent(java.lang.String event, java.lang.Class<?> javaClass, java.util.Map<java.lang.String, java.lang.reflect.Method> events) |
|
private boolean |
invokeEvent(java.lang.String eventName, PersistentEntity entity, EntityAccess ea, org.springframework.context.ApplicationEvent event) |
|
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
|
public void |
persistentEntityAdded(PersistentEntity entity) {@inheritDoc} |
|
protected void |
setVersion(EntityAccess ea) |
|
public boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) {@inheritDoc} |
Methods inherited from class | Name |
---|---|
class AbstractPersistenceEventListener |
getOrder, isValidSource, onApplicationEvent, onPersistenceEvent, supportsSourceType |
{@inheritDoc}
{@inheritDoc}