org.evento.parser.model.component.Aggregate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evento-parser Show documentation
Show all versions of evento-parser Show documentation
Codebase Parser to detect RECQ Components for Evento Framework
package org.evento.parser.model.component;
import org.evento.parser.model.handler.AggregateCommandHandler;
import org.evento.parser.model.handler.EventSourcingHandler;
import java.util.List;
/**
* The Aggregate class represents an aggregate component. It extends the Component class.
* It contains a list of AggregateCommandHandlers and EventSourcingHandlers.
*/
public class Aggregate extends Component {
private List aggregateCommandHandlers;
private List eventSourcingHandlers;
/**
* Retrieves the list of AggregateCommandHandlers associated with this Aggregate.
*
* @return The list of AggregateCommandHandlers. Each AggregateCommandHandler represents a command handler for the Aggregate and contains information about the command it handles
*, the produced event, and the invoked commands and queries.
*/
public List getAggregateCommandHandlers() {
return aggregateCommandHandlers;
}
/**
* Sets the list of AggregateCommandHandlers for this Aggregate.
*
* @param aggregateCommandHandlers The list of AggregateCommandHandlers to set. Each AggregateCommandHandler represents a command handler for the Aggregate and contains information
*
* about the command it handles, the produced event, and the invoked commands and queries.
*/
public void setAggregateCommandHandlers(List aggregateCommandHandlers) {
this.aggregateCommandHandlers = aggregateCommandHandlers;
}
/**
* Retrieves the list of EventSourcingHandlers associated with this Aggregate.
*
* @return The list of EventSourcingHandlers. Each EventSourcingHandler represents a handler for the domain events produced by the Aggregate.
*/
public List getEventSourcingHandlers() {
return eventSourcingHandlers;
}
/**
* Sets the list of EventSourcingHandlers for this Aggregate.
*
* @param eventSourcingHandlers The list of EventSourcingHandlers to set. Each EventSourcingHandler represents a handler for the domain events produced by the Aggregate.
*/
public void setEventSourcingHandlers(List eventSourcingHandlers) {
this.eventSourcingHandlers = eventSourcingHandlers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy