@AutoConfiguration @AutoConfigureBefore(value=AxonAutoConfiguration.class) @ConditionalOnClass(name="org.apache.avro.message.SchemaStore") public class AvroSerializerAutoConfiguration extends Object
Constructor and Description |
---|
AvroSerializerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.apache.avro.message.SchemaStore |
defaultAxonSchemaStore(org.springframework.beans.factory.BeanFactory beanFactory,
List<ClasspathAvroSchemaLoader> schemaLoader)
Constructs a default in-memory schema store filled with schemas detected during class scanning of packages,
configured using
AvroSchemaScan annotations. |
ClasspathAvroSchemaLoader |
specificRecordBaseClasspathAvroSchemaLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Constructs default schema loader from Avro-Java-Maven-Generated classes.
|
@Bean(value="defaultAxonSchemaStore") @Conditional(value={org.axonframework.springboot.autoconfig.AvroSerializerAutoConfiguration.AvroConfiguredCondition.class,org.axonframework.springboot.autoconfig.AvroSerializerAutoConfiguration.OnMissingDefaultSchemaStoreCondition.class}) public org.apache.avro.message.SchemaStore defaultAxonSchemaStore(org.springframework.beans.factory.BeanFactory beanFactory, List<ClasspathAvroSchemaLoader> schemaLoader)
AvroSchemaScan
annotations.beanFactory
- spring bean factory.schemaLoader
- list of schema loaders.@Bean(value="specificRecordBaseClasspathAvroSchemaLoader") @Conditional(value=org.axonframework.springboot.autoconfig.AvroSerializerAutoConfiguration.AvroConfiguredCondition.class) public ClasspathAvroSchemaLoader specificRecordBaseClasspathAvroSchemaLoader(org.springframework.core.io.ResourceLoader resourceLoader)
resourceLoader
- resource loader.Copyright © 2010–2025. All rights reserved.