InMemoryRootDirectory

public final class InMemoryRootDirectory implements AggregateRootDirectory

An in-mem implementation of AggregateRootDirectory.

Constructors

Link copied to clipboard
public void InMemoryRootDirectory()

Functions

Link copied to clipboard
public Optional<? extends AggregatePartRepository<? extends Object, ? extends Object, ? extends Object>> findPart(Class<? extends AggregateRoot<? extends Object>> rootClass, Class<? extends EntityState> partStateClass)
Looks up an aggregate part repository by the type of the root and the type of the part state.
Link copied to clipboard
public void register(AggregatePartRepository<? extends Object, ? extends Object, ? extends Object> repository)
Associates the given aggregate part repository and the respective root type.