public abstract class AbstractBeanPersistListener extends Object implements BeanPersistListener
Objects extending this should override the methods then are interested in. The default inserted() updated() and deleted() methods return false and as such means other servers in the cluster are not notified.
Constructor and Description |
---|
AbstractBeanPersistListener() |
Modifier and Type | Method and Description |
---|---|
void |
deleted(Object bean)
Notified that a bean has been deleted.
|
void |
inserted(Object bean)
Notified that a bean has been inserted.
|
void |
softDeleted(Object bean)
Notified that a bean has been soft deleted.
|
void |
updated(Object bean,
Set<String> updatedProperties)
Notified that a bean has been updated.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRegisterFor
public AbstractBeanPersistListener()
public void inserted(Object bean)
inserted
in interface BeanPersistListener
bean
- The bean that was inserted.public void updated(Object bean, Set<String> updatedProperties)
updated
in interface BeanPersistListener
bean
- The bean that was updated.updatedProperties
- The properties that were modified by this update.public void deleted(Object bean)
deleted
in interface BeanPersistListener
bean
- The bean that was deleted.public void softDeleted(Object bean)
softDeleted
in interface BeanPersistListener
bean
- The bean that was deleted.Copyright © 2019. All rights reserved.