public interface MergeAggregatesWithRepoThenFactProvider<A extends AggregateRoot<?>>
| Modifier and Type | Method and Description |
|---|---|
List<A> |
orFail()
Returns the aggregate roots or throws an
AggregateNotFoundException
if one of the aggregate roots cannot be loaded from their repository. |
List<A> |
orFromFactory()
Returns the aggregate roots.
|
List<A> orFail() throws AggregateNotFoundException
AggregateNotFoundException
if one of the aggregate roots cannot be loaded from their repository.AggregateNotFoundException - if the aggregate doesn't existList<A> orFromFactory()
It uses the MatchingFactoryParameter annotation on
the DTO to find the factory method parameters.
IllegalStateException - if some but not all aggregate roots are loadedCopyright © 2013-2016–2016 SeedStack. All rights reserved.