All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evento.parser.model.component.Aggregate Maven / Gradle / Ivy

The newest version!
package com.evento.parser.model.component;

import com.evento.parser.model.handler.AggregateCommandHandler;
import com.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 - 2024 Weber Informatics LLC | Privacy Policy