Interface PersistenceManagerEventHandler

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
ArchiveStatusPersistenceEventHandler, PersistenceManagerEventHandlerAdapter

public interface PersistenceManagerEventHandler extends org.springframework.core.Ordered
Interface for handling various lifecycle event for the PersistenceManager. These events occur as part of the standard admin persistence lifecycle for entities.

PersistenceManagerEventHandler instances are generally registered via the following approach in application context xml

<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor"> <property name="collectionRef" value="blSandBoxPersistenceManagerEventHandlers"/> <property name="targetRef" value="blPersistenceManagerEventHandlers"/> </bean> <bean id="blSandBoxPersistenceManagerEventHandlers" class="org.springframework.beans.factory.config.ListFactoryBean"> <property name="sourceList"> <list> <ref bean="blSandBoxPersistenceManagerEventHandler"/> </list> </property> </bean>

Author:
Jeff Fischer