org.broadleafcommerce.profile.core.domain
Class CustomerPersistedEntityListener
java.lang.Object
org.broadleafcommerce.profile.core.domain.CustomerPersistedEntityListener
public class CustomerPersistedEntityListener
- extends Object
The main function of this entity listener is to publish a Spring event that the customer has been persisted. This is
necessary in order to update the current customer in the application
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
ApplicationEventPublisher#publishEvent(org.springframework.context.ApplicationEvent)},
CustomerPersistedEvent},
org.broadleafcommerce.profile.web.core.CustomerStateRefresher},
org.broadleafcommerce.profile.web.core.CustomerState}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerPersistedEntityListener
public CustomerPersistedEntityListener()
customerUpdated
public void customerUpdated(Object entity)
- Invoked on both the PostPersist and PostUpdate. The default implementation is to simply publish a Spring event
to the ApplicationContext after the transaction has completed.
- Parameters:
entity - the newly-persisted Customer- See Also:
CustomerPersistedEvent
Copyright © 2013. All Rights Reserved.