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