@Beta public class ProductCreatedMessageFactory extends Object implements MessageFactory<ProductCreatedMessage>
MessageFactory
interface to encapsulate the creation of a
ProductCreatedMessage
.Constructor and Description |
---|
ProductCreatedMessageFactory() |
Modifier and Type | Method and Description |
---|---|
ProductCreatedMessage |
newMessage(String content)
Creates a new
ProductCreatedMessage with the content of the message content/payload. |
@Nonnull public ProductCreatedMessage newMessage(@Nonnull String content)
ProductCreatedMessage
with the content of the message content/payload.newMessage
in interface MessageFactory<ProductCreatedMessage>
content
- The content/payload of the message.Copyright © 2019 SAP SE. All rights reserved.