Class OutboxEventExternalizerFactory
java.lang.Object
org.springframework.modulith.events.support.OutboxEventExternalizerFactory
A factory to create
OutboxEventExternalizer for EventExternalizationTransports. Primarily intended to
be used with outbox implementation-specific configuration code.- Since:
- 2.1
- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionOutboxEventExternalizerFactory(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher) Creates a newOutboxEventExternalizerFactoryfor the givenEventExternalizationConfigurationandApplicationEventPublisher. -
Method Summary
Modifier and TypeMethodDescriptionforTransport(EventExternalizationTransport transport) Creates aOutboxEventExternalizerfor the givenEventExternalizationTransport.
-
Constructor Details
-
OutboxEventExternalizerFactory
public OutboxEventExternalizerFactory(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher) Creates a newOutboxEventExternalizerFactoryfor the givenEventExternalizationConfigurationandApplicationEventPublisher.- Parameters:
configuration- must not be null.publisher- must not be null.
-
-
Method Details
-
forTransport
Creates aOutboxEventExternalizerfor the givenEventExternalizationTransport.- Parameters:
transport- must not be null.- Returns:
- will never be null.
-