public interface MergeTuplesWithRepositoryThenFactoryProvider<T extends org.javatuples.Tuple>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
orFail()
Returns the aggregate root tuples or throws an
AggregateNotFoundException
if the one of the aggregate roots cannot be loaded from their repository. |
List<T> |
orFromFactory()
Returns the aggregate root tuples.
|
List<T> orFail() throws AggregateNotFoundException
AggregateNotFoundException
if the one of the aggregate roots cannot be loaded from their repository.AggregateNotFoundException - if the aggregate doesn't existList<T> 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.