Class AutoMappedFieldAnnotationProcessor
java.lang.Object
io.jmix.search.index.mapping.processor.AbstractFieldAnnotationProcessor<AutoMappedField>
io.jmix.search.index.mapping.processor.impl.AutoMappedFieldAnnotationProcessor
- All Implemented Interfaces:
FieldAnnotationProcessor<AutoMappedField>
@Component("search_AutoMappedFieldAnnotationProcessor")
public class AutoMappedFieldAnnotationProcessor
extends AbstractFieldAnnotationProcessor<AutoMappedField>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateParameters
(AutoMappedField specificAnnotation) Extracts parameters from annotation.Gets specific annotation classprotected Class<? extends FieldMappingStrategy>
Provides class ofFieldMappingStrategy
specific for this annotation.protected void
processSpecificAnnotation
(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, AutoMappedField annotation) Processes specific field-mapping annotation and adds new Mapping definition element to builder.Methods inherited from class io.jmix.search.index.mapping.processor.AbstractFieldAnnotationProcessor
process
-
Constructor Details
-
AutoMappedFieldAnnotationProcessor
public AutoMappedFieldAnnotationProcessor()
-
-
Method Details
-
getAnnotationClass
Description copied from interface:FieldAnnotationProcessor
Gets specific annotation class- Returns:
- annotation class
-
processSpecificAnnotation
protected void processSpecificAnnotation(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, AutoMappedField annotation) Description copied from class:AbstractFieldAnnotationProcessor
Processes specific field-mapping annotation and adds new Mapping definition element to builder.- Specified by:
processSpecificAnnotation
in classAbstractFieldAnnotationProcessor<AutoMappedField>
- Parameters:
builder
- Mapping Definition builderrootEntityMetaClass
- entity holds indexed propertiesannotation
- processed annotation
-
createParameters
Description copied from class:AbstractFieldAnnotationProcessor
Extracts parameters from annotation.- Specified by:
createParameters
in classAbstractFieldAnnotationProcessor<AutoMappedField>
- Parameters:
specificAnnotation
- processed annotation- Returns:
- map with parameters
-
getFieldMappingStrategyClass
Description copied from class:AbstractFieldAnnotationProcessor
Provides class ofFieldMappingStrategy
specific for this annotation.- Specified by:
getFieldMappingStrategyClass
in classAbstractFieldAnnotationProcessor<AutoMappedField>
- Returns:
- mapping strategy
-