
com.evento.common.modeling.messaging.message.application.DomainEventMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evento-common Show documentation
Show all versions of evento-common Show documentation
Common Library of Object and Algorithms for Evento Framework
The newest version!
package com.evento.common.modeling.messaging.message.application;
import com.evento.common.modeling.messaging.payload.DomainEvent;
/**
* The DomainEventMessage class represents a specialized type of EventMessage that encapsulates a DomainEvent.
* It inherits from the EventMessage class.
*
* @see EventMessage
*/
public class DomainEventMessage extends EventMessage {
/**
* Constructs a new DomainEventMessage.
*
* @param payload The payload of the DomainEventMessage.
* The payload must be an instance of DomainEvent or its subclass.
*
* @see DomainEvent
*/
public DomainEventMessage(DomainEvent payload) {
super(payload);
}
/**
* Constructs a new DomainEventMessage.
*
* This constructor is used to create an instance of DomainEventMessage without any parameters.
*
* Example usage:
* DomainEventMessage eventMessage = new DomainEventMessage();
*/
public DomainEventMessage() {
}
@Override
public String toString() {
return "DomainEventMessage{} " + super.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy