@Beta public class LegalDocumentCreatedMessageFactory extends Object implements MessageFactory<LegalDocumentCreatedMessage>
MessageFactory
interface to encapsulate the create of a
LegalDocumentCreatedMessage
.Constructor and Description |
---|
LegalDocumentCreatedMessageFactory() |
Modifier and Type | Method and Description |
---|---|
LegalDocumentCreatedMessage |
newMessage(MessageTopic messageTopic,
String content)
Creates a new
LegalDocumentCreatedMessage with the content of the message content/payload. |
@Nonnull public LegalDocumentCreatedMessage newMessage(@Nonnull MessageTopic messageTopic, @Nonnull String content)
LegalDocumentCreatedMessage
with the content of the message content/payload.newMessage
in interface MessageFactory<LegalDocumentCreatedMessage>
messageTopic
- The topic the content was received for.content
- The content/payload of the message.Copyright © 2019 SAP SE. All rights reserved.