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 locally.
|
void |
inserted(Object bean)
Notified that a bean has been inserted locally.
|
void |
updated(Object bean,
Set<String> updatedProperties)
Notified that a bean has been updated locally.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRegisterForpublic AbstractBeanPersistListener()
public void inserted(Object bean)
inserted in interface BeanPersistListenerbean - The bean that was inserted.public void updated(Object bean, Set<String> updatedProperties)
updated in interface BeanPersistListenerbean - The bean that was updated.updatedProperties - The properties that were modified by this update.public void deleted(Object bean)
deleted in interface BeanPersistListenerbean - The bean that was deleted.Copyright © 2016. All rights reserved.