public interface MergeAggregateWithRepositoryThenFactoryProvider<A extends AggregateRoot<?>>
| Modifier and Type | Method and Description |
|---|---|
A |
orFail()
Returns the aggregate root or throws an
AggregateNotFoundException
if the aggregate root cannot be loaded from the repository. |
A |
orFromFactory()
Returns the aggregate root.
|
A orFail() throws AggregateNotFoundException
AggregateNotFoundException
if the aggregate root cannot be loaded from the repository.AggregateNotFoundException - if the aggregate doesn't existA orFromFactory()
It uses the MatchingFactoryParameter annotation on
the DTO to find the factory method parameters.
Copyright © 2013-2016–2016 SeedStack. All rights reserved.