Package io.ebeaninternal.server.deploy
Class ChainedBeanPersistListener
- java.lang.Object
-
- io.ebeaninternal.server.deploy.ChainedBeanPersistListener
-
- All Implemented Interfaces:
BeanPersistListener
public class ChainedBeanPersistListener extends Object implements BeanPersistListener
Handles multiple BeanPersistListener's for a given entity type.
-
-
Constructor Summary
Constructors Constructor Description ChainedBeanPersistListener(List<BeanPersistListener> list)
Construct given the list of BeanPersistListener's.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleted(Object bean)
Notified that a bean has been deleted.ChainedBeanPersistListener
deregister(BeanPersistListener c)
De-register a BeanPersistListener and return the resulting chain.void
inserted(Object bean)
Notified that a bean has been inserted.boolean
isRegisterFor(Class<?> cls)
Return true if this BeanPersistListener should be registered for events on this entity type.ChainedBeanPersistListener
register(BeanPersistListener c)
Register a new BeanPersistListener and return the resulting chain.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.
-
-
-
Constructor Detail
-
ChainedBeanPersistListener
public ChainedBeanPersistListener(List<BeanPersistListener> list)
Construct given the list of BeanPersistListener's.
-
-
Method Detail
-
isRegisterFor
public boolean isRegisterFor(Class<?> cls)
Description copied from interface:BeanPersistListener
Return true if this BeanPersistListener should be registered for events on this entity type.- Specified by:
isRegisterFor
in interfaceBeanPersistListener
-
register
public ChainedBeanPersistListener register(BeanPersistListener c)
Register a new BeanPersistListener and return the resulting chain.
-
deregister
public ChainedBeanPersistListener deregister(BeanPersistListener c)
De-register a BeanPersistListener and return the resulting chain.
-
deleted
public void deleted(Object bean)
Description copied from interface:BeanPersistListener
Notified that a bean has been deleted.- Specified by:
deleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was deleted.
-
softDeleted
public void softDeleted(Object bean)
Description copied from interface:BeanPersistListener
Notified that a bean has been soft deleted.- Specified by:
softDeleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was soft deleted.
-
inserted
public void inserted(Object bean)
Description copied from interface:BeanPersistListener
Notified that a bean has been inserted.- Specified by:
inserted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was inserted.
-
updated
public void updated(Object bean, Set<String> updatedProperties)
Description copied from interface:BeanPersistListener
Notified that a bean has been updated.- Specified by:
updated
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was updated.updatedProperties
- The properties that were modified by this update.
-
-