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, allowing them to come both from repository and factory.
|
List<A> |
orFromFactory(boolean allowMixed)
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()
orFromFactory(boolean)
It uses the MatchingFactoryParameter annotation on
the DTO to find the factory method parameters.
List<A> orFromFactory(boolean allowMixed)
It uses the MatchingFactoryParameter annotation on
the DTO to find the factory method parameters.
allowMixed - If true, aggregates coming from repository and factory can be mixed in the result.IllegalStateException - if some but not all aggregate roots are loadedCopyright © 2013-2016–2017 SeedStack. All rights reserved.