Package com.aim2be.platform.errorevent
Class ErrorEventAutoConfiguration
java.lang.Object
com.aim2be.platform.errorevent.ErrorEventAutoConfiguration
@AutoConfiguration(after=com.aim2be.platform.outbox.OutboxAutoConfiguration.class)
@ConditionalOnProperty(prefix="im2be.error-event",
name="enabled",
havingValue="true")
@EnableConfigurationProperties(ErrorEventProperties.class)
public class ErrorEventAutoConfiguration
extends Object
Auto-configuration for the error-event Kafka stream (ADR-0015).
Activates only when im2be.error-event.enabled=true AND an
OutboxPublisher bean exists (the stream rides the ADR-0014 outbox, so
im2be.outbox.enabled=true is a prerequisite). Default off — each
service opts in per the ADR-0015 rollout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorEventOutboxWriter(OutboxPublisher outboxPublisher, ErrorEventProperties properties) TheREQUIRES_NEWoutbox writer.
-
Constructor Details
-
ErrorEventAutoConfiguration
public ErrorEventAutoConfiguration()
-
-
Method Details
-
errorEventOutboxWriter
@Bean @ConditionalOnBean(com.aim2be.platform.outbox.OutboxPublisher.class) @ConditionalOnMissingBean public ErrorEventOutboxWriter errorEventOutboxWriter(OutboxPublisher outboxPublisher, ErrorEventProperties properties) TheREQUIRES_NEWoutbox writer. Requires anOutboxPublisher; if the outbox is not enabled, the error-event stream stays inert (no bean,ErrorEventPublishernot created). -
errorEventPublisher
@Bean @ConditionalOnBean(ErrorEventOutboxWriter.class) @ConditionalOnMissingBean public ErrorEventPublisher errorEventPublisher(ErrorEventOutboxWriter writer)
-