muoncore / newton

Extend Muon into the world of Spring. Implement Muon apis, especially around events to provide DDD patterns natively in Spring Boot
http://muoncore.io
GNU Lesser General Public License v3.0
12 stars 5 forks source link

Don't use exceptions for flow control on aggregate repository #60

Closed daviddawson closed 7 years ago

daviddawson commented 7 years ago

Currently throws AggregateNotFoundException. This leads to clunky client code.

Prefer an Optional<AggregateRoot> instead.

daviddawson commented 7 years ago

Fixed by adding second completeablefuture style api