Class PostgresqlAutoConfiguration

java.lang.Object
io.axoniq.framework.springboot.autoconfig.PostgresqlAutoConfiguration

@AutoConfiguration(afterName="io.axoniq.framework.springboot.autoconfig.AxonServerAutoConfiguration", beforeName="org.axonframework.extension.springboot.autoconfig.JpaEventStoreAutoConfiguration") @ConditionalOnClass(PostgresqlEventStorageEngine.class) @EnableConfigurationProperties(PostgresqlProperties.class) public class PostgresqlAutoConfiguration extends Object
Autoconfiguration class for the Axon Framework PostgreSQL extension.

Note that the PostgresqlConfigurationEnhancer already sets this extension's defaults, like the PostgresqlEventStorageEngine, through the service-loading mechanism. This autoconfiguration at the moment only provides the ability to disable the PostgresqlConfigurationEnhancer by setting the axon.postgresql.enabled property to false.

Since:
5.1.0
Author:
Steven van Beelen
  • Constructor Details

    • PostgresqlAutoConfiguration

      public PostgresqlAutoConfiguration()
  • Method Details

    • disablePostgresqlConfigurationEnhancer

      @Bean @ConditionalOnProperty(name="axon.postgresql.enabled", havingValue="false") public ConfigurationEnhancer disablePostgresqlConfigurationEnhancer()
      Bean creation method for a ConfigurationEnhancer that disables the PostgresqlConfigurationEnhancer when the axon.postgresql.enabled property is set to false.
      Returns:
      a configuration enhancer that disables the PostgreSQL configuration enhancer