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, ApplicationContext context) Creates a newOutboxEventExternalizerFactoryfor the givenEventExternalizationConfigurationandApplicationContext, resolving routing target and key expressions (which may refer to beans) against the original event.OutboxEventExternalizerFactory(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher) Deprecated, for removal: This API element is subject to removal in a future version.since 2.2, 2.1.2, for removal in 2.3. -
Method Summary
Modifier and TypeMethodDescriptionforTransport(EventExternalizationTransport transport) Creates aOutboxEventExternalizerfor the givenEventExternalizationTransport.
-
Constructor Details
-
OutboxEventExternalizerFactory
@Deprecated(since="2.2, 2.1.2", forRemoval=true) public OutboxEventExternalizerFactory(EventExternalizationConfiguration configuration, ApplicationEventPublisher publisher) Deprecated, for removal: This API element is subject to removal in a future version.since 2.2, 2.1.2, for removal in 2.3. UseOutboxEventExternalizerFactory(EventExternalizationConfiguration, ApplicationContext)instead.Creates a newOutboxEventExternalizerFactoryfor the givenEventExternalizationConfigurationandApplicationEventPublisher, not resolving bean references in routing target and key expressions.- Parameters:
configuration- must not be null.publisher- must not be null.
-
OutboxEventExternalizerFactory
public OutboxEventExternalizerFactory(EventExternalizationConfiguration configuration, ApplicationContext context) Creates a newOutboxEventExternalizerFactoryfor the givenEventExternalizationConfigurationandApplicationContext, resolving routing target and key expressions (which may refer to beans) against the original event.- Parameters:
configuration- must not be null.context- must not be null.- Since:
- 2.2, 2.1.2
-
-
Method Details
-
forTransport
Creates aOutboxEventExternalizerfor the givenEventExternalizationTransport.- Parameters:
transport- must not be null.- Returns:
- will never be null.
-