public abstract class AbstractRepositoryEventListener<T> extends Object implements ApplicationListener<RepositoryEvent>
RepositoryEvents and dispatches them to a specific method based on
the event type.| Constructor and Description |
|---|
AbstractRepositoryEventListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onAfterCreate(T entity)
Override this method if you are interested in afterCreate events.
|
protected void |
onAfterDelete(T entity)
Override this method if you are interested in afterDelete events.
|
protected void |
onAfterLinkDelete(T parent,
Object linked)
Override this method if you are interested in afterLinkDelete events.
|
protected void |
onAfterLinkSave(T parent,
Object linked)
Override this method if you are interested in afterLinkSave events.
|
protected void |
onAfterSave(T entity)
Override this method if you are interested in afterSave events.
|
void |
onApplicationEvent(RepositoryEvent event) |
protected void |
onBeforeCreate(T entity)
Override this method if you are interested in beforeCreate events.
|
protected void |
onBeforeDelete(T entity)
Override this method if you are interested in beforeDelete events.
|
protected void |
onBeforeLinkDelete(T parent,
Object linked)
Override this method if you are interested in beforeLinkDelete events.
|
protected void |
onBeforeLinkSave(T parent,
Object linked)
Override this method if you are interested in beforeLinkSave events.
|
protected void |
onBeforeSave(T entity)
Override this method if you are interested in beforeSave events.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforPayloadpublic final void onApplicationEvent(RepositoryEvent event)
onApplicationEvent in interface ApplicationListener<RepositoryEvent>protected void onBeforeCreate(T entity)
entity - The entity being created.protected void onAfterCreate(T entity)
entity - The entity that was created.protected void onBeforeSave(T entity)
entity - The entity being saved.protected void onAfterSave(T entity)
entity - The entity that was just saved.protected void onBeforeLinkSave(T parent, Object linked)
parent - The parent entity to which the child object is linked.linked - The linked, child entity.protected void onAfterLinkSave(T parent, Object linked)
parent - The parent entity to which the child object is linked.linked - The linked, child entity.protected void onBeforeLinkDelete(T parent, Object linked)
parent - The parent entity to which the child object is linked.linked - The linked, child entity.protected void onAfterLinkDelete(T parent, Object linked)
parent - The parent entity to which the child object is linked.linked - The linked, child entity.protected void onBeforeDelete(T entity)
entity - The entity that is being deleted.protected void onAfterDelete(T entity)
entity - The entity that was just deleted.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.