| 1 | package org.sanmibuh.ddd.port; | |
| 2 | ||
| 3 | import java.util.List; | |
| 4 | import org.sanmibuh.ddd.domain.AggregateRoot; | |
| 5 | import org.sanmibuh.ddd.domain.DomainEvent; | |
| 6 | ||
| 7 | public abstract class CommandHandler<C extends Command, A extends AggregateRoot<?>> { | |
| 8 | ||
| 9 | protected abstract A execute(C command); | |
| 10 | ||
| 11 | public final List<DomainEvent> handle(final C command) { | |
| 12 |
1
1. handle : replaced return value with Collections.emptyList for org/sanmibuh/ddd/port/CommandHandler::handle → KILLED |
return execute(command).domainEvents(); |
| 13 | } | |
| 14 | } | |
Mutations | ||
| 12 |
1.1 |