@Retention(value=RUNTIME) @Import(value=org.axonframework.spring.serialization.avro.AvroSchemaPackages.Registrar.class) @Target(value=TYPE) @Documented @Inherited public @interface AvroSchemaScan
basePackageClasses()
, basePackages()
or its alias value()
may be specified to define
specific packages to scan. If specific packages are not defined scanning will occur from the package of the class
with this annotation.AvroSchemaPackages
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying the packages to scan for classes containing Avro
Schemas. |
String[] |
basePackages
Base packages to scan for classes containing Avro Schemas.
|
String[] |
value
Alias for the
basePackages() attribute. |
public abstract String[] basePackages
value()
is an alias for (and mutually
exclusive with) this attribute.
Use basePackageClasses()
for a type-safe alternative to String-based package names.
public abstract Class<?>[] basePackageClasses
basePackages()
for specifying the packages to scan for classes containing Avro
Schemas. The package of each class specified will be scanned.
Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.
@AliasFor(value="basePackages") public abstract String[] value
basePackages()
attribute. Allows for more concise annotation declarations e.g.:
@AvroSchemaScan("org.my.pkg")
instead of @AvroSchemaScan(basePackages="org.my.pkg")
.Copyright © 2010–2025. All rights reserved.