add change id for handler

This commit is contained in:
karleowne 2019-06-03 19:50:47 +03:00
parent 78ff9290c8
commit 4f44744986
9 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
<packaging>jar</packaging>
<artifactId>sink-common-lib</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -27,7 +27,7 @@ public class CustomerChangePaymentMachineEventHandler implements PaymentEventHan
CustomerChange change = payload.getCustomerChanges().get(i);
for (CustomerChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class InvoiceChangePaymentMachineEventHandler implements PaymentEventHand
InvoiceChange change = payload.getInvoiceChanges().get(i);
for (InvoiceChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class PartyChangePaymentMachineEventHandler implements PaymentEventHandle
PartyChange change = payload.getPartyChanges().get(i);
for (PartyChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class PayoutChangePayoutMachineEventHandler implements PayoutEventHandler
PayoutChange change = payload.getPayoutChanges().get(i);
for (PayoutChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class CustomerChangePaymentStockEventHandler implements PaymentEventHandl
CustomerChange change = payload.getPayload().getCustomerChanges().get(i);
for (CustomerChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class InvoiceChangePaymentStockEventHandler implements PaymentEventHandle
InvoiceChange change = payload.getPayload().getInvoiceChanges().get(i);
for (InvoiceChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class PartyChangePaymentStockEventHandler implements PaymentEventHandler
PartyChange change = payload.getPayload().getPartyChanges().get(i);
for (PartyChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}

View File

@ -25,7 +25,7 @@ public class PayoutChangePayoutStockEventHandler implements PayoutEventHandler {
PayoutChange change = payload.getPayload().getPayoutChanges().get(i);
for (PayoutChangeEventHandler eventHandler : eventHandlers) {
if (eventHandler.accept(change)) {
eventHandler.handle(change, baseEvent);
eventHandler.handle(change, baseEvent, i);
}
}
}