Class NamastackOutboxModeValidationConfiguration
java.lang.Object
org.springframework.modulith.events.namastack.NamastackOutboxModeValidationConfiguration
- All Implemented Interfaces:
InitializingBean
@AutoConfiguration
@AutoConfigureBefore(NamastackOutboxEventRecorderAutoConfiguration.class)
@ConditionalOnProperty(name="spring.modulith.events.externalization.mode",
havingValue="outbox")
class NamastackOutboxModeValidationConfiguration
extends Object
implements InitializingBean
Validation configuration that fails fast if externalization mode is set to
outbox but Namastack Outbox is not
on the classpath.
This prevents silent failures where events would be configured for outbox externalization but no
OutboxHandler would be registered to actually transport them.
- Since:
- 2.1
- Author:
- Roland Beisel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NamastackOutboxModeValidationConfiguration
NamastackOutboxModeValidationConfiguration()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-