Class PersistenceMessageFactory
- java.lang.Object
-
- com.broadleafcommerce.common.messaging.PersistenceMessageFactory
-
- All Implemented Interfaces:
MessageFactory<PersistenceMessage<Object>>
public class PersistenceMessageFactory extends Object implements MessageFactory<PersistenceMessage<Object>>
MessageFactory
for creating messages suitable for thePersistenceProducer
channel- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description PersistenceMessageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.messaging.Message<PersistenceMessage<Object>>
createMessage(Object entity)
Create aMessage
based on an entity instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.MessageFactory
createMessage
-
-
-
-
Method Detail
-
createMessage
public org.springframework.messaging.Message<PersistenceMessage<Object>> createMessage(Object entity)
Description copied from interface:MessageFactory
Create aMessage
based on an entity instance.- Specified by:
createMessage
in interfaceMessageFactory<PersistenceMessage<Object>>
- Parameters:
entity
- The entity whose information informs theMessage
- Returns:
- The message to send via the
NotificationHandler
-
-