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 Summary
ConstructorsConstructorDescriptionAggregateBasedJpaEventStorageEngineConfigurationEnhancer(JpaEventStorageEngineConfigurationProperties properties, jakarta.persistence.EntityManagerFactory factory, PersistenceExceptionResolver persistenceExceptionResolver) Creates an instance of aAggregateBasedJpaEventStorageEngineConfigurationEnhancerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry registry) final booleanIndicates whether some other object is "equal to" this one.jakarta.persistence.EntityManagerFactoryfactory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.Returns the value of thepersistenceExceptionResolverrecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregateBasedJpaEventStorageEngineConfigurationEnhancer
public AggregateBasedJpaEventStorageEngineConfigurationEnhancer(JpaEventStorageEngineConfigurationProperties properties, jakarta.persistence.EntityManagerFactory factory, PersistenceExceptionResolver persistenceExceptionResolver) Creates an instance of aAggregateBasedJpaEventStorageEngineConfigurationEnhancerrecord class.- Parameters:
properties- the value for thepropertiesrecord componentfactory- the value for thefactoryrecord componentpersistenceExceptionResolver- the value for thepersistenceExceptionResolverrecord component
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns 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
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
factory
public jakarta.persistence.EntityManagerFactory factory()Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-
persistenceExceptionResolver
Returns the value of thepersistenceExceptionResolverrecord component.- Returns:
- the value of the
persistenceExceptionResolverrecord component
-