AggregateRoot

public class AggregateRoot<I>

A root object for a larger aggregate.

Parameters

<I>

the type for IDs of this class of aggregates

Constructors

Link copied to clipboard
protected void AggregateRoot(BoundedContext context, I id)
Creates a new instance.

Functions

Link copied to clipboard
public I id()
Obtains the aggregate ID.
Link copied to clipboard
protected S partState<S extends EntityState, A extends AggregatePart<I, S, ? extends Object, ? extends Object>>(Class<S> partStateClass)
Obtains a part state by its class.