GH-80 - Renamed ApplicationModuleIntegrationListener to ApplicationModuleListener.
This commit is contained in:
@@ -19,7 +19,7 @@ import example.order.OrderCompleted;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.modulith.ApplicationModuleIntegrationListener;
|
||||
import org.springframework.modulith.ApplicationModuleListener;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -34,7 +34,7 @@ public class InventoryManagement {
|
||||
|
||||
private final InventoryInternal dependency;
|
||||
|
||||
@ApplicationModuleIntegrationListener
|
||||
@ApplicationModuleListener
|
||||
void on(OrderCompleted event) throws InterruptedException {
|
||||
|
||||
var orderId = event.getOrderId();
|
||||
|
||||
@@ -22,7 +22,7 @@ import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.modulith.ApplicationModuleIntegrationListener;
|
||||
import org.springframework.modulith.ApplicationModuleListener;
|
||||
import org.springframework.modulith.events.EventPublicationRegistry;
|
||||
import org.springframework.modulith.test.ApplicationModuleTest;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
@@ -56,7 +56,7 @@ class EventPublicationRegistryTests {
|
||||
|
||||
static class FailingAsyncTransactionalEventListener {
|
||||
|
||||
@ApplicationModuleIntegrationListener
|
||||
@ApplicationModuleListener
|
||||
void foo(OrderCompleted event) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user