Record Class JpaEventStoreAutoConfiguration.AggregateBasedJpaEventStorageEngineConfigurationEnhancer

java.lang.Object
java.lang.Record
org.axonframework.extension.springboot.autoconfig.JpaEventStoreAutoConfiguration.AggregateBasedJpaEventStorageEngineConfigurationEnhancer
All Implemented Interfaces:
ConfigurationEnhancer
Enclosing class:
JpaEventStoreAutoConfiguration

public static record JpaEventStoreAutoConfiguration.AggregateBasedJpaEventStorageEngineConfigurationEnhancer(JpaEventStorageEngineConfigurationProperties properties, jakarta.persistence.EntityManagerFactory factory, PersistenceExceptionResolver persistenceExceptionResolver) extends Record implements ConfigurationEnhancer
Enhancer for registration of a bean definition creating a JPA Storage Engine.
  • Constructor Details

    • AggregateBasedJpaEventStorageEngineConfigurationEnhancer

      public AggregateBasedJpaEventStorageEngineConfigurationEnhancer(JpaEventStorageEngineConfigurationProperties properties, jakarta.persistence.EntityManagerFactory factory, PersistenceExceptionResolver persistenceExceptionResolver)
      Creates an instance of a AggregateBasedJpaEventStorageEngineConfigurationEnhancer record class.
      Parameters:
      properties - the value for the properties record component
      factory - the value for the factory record component
      persistenceExceptionResolver - the value for the persistenceExceptionResolver record component
  • Method Details

    • enhance

      public void enhance(@Nonnull ComponentRegistry registry)
      Description copied from interface: ConfigurationEnhancer
      Enhances the given registry with, for example, additional components and decorators.
      Specified by:
      enhance in interface ConfigurationEnhancer
      Parameters:
      registry - The registry instance to enhance.
    • order

      public int order()
      Description copied from interface: ConfigurationEnhancer
      Returns the relative order this enhancer should be invoked in, compared to other instances.

      Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to 0 when not set.

      Specified by:
      order in interface ConfigurationEnhancer
      Returns:
      The order in which this enhancer should be invoked.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • properties

      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • factory

      public jakarta.persistence.EntityManagerFactory factory()
      Returns the value of the factory record component.
      Returns:
      the value of the factory record component
    • persistenceExceptionResolver

      public PersistenceExceptionResolver persistenceExceptionResolver()
      Returns the value of the persistenceExceptionResolver record component.
      Returns:
      the value of the persistenceExceptionResolver record component