Class AbstractFieldAnnotationProcessor<T extends Annotation>
java.lang.Object
io.jmix.search.index.mapping.processor.AbstractFieldAnnotationProcessor<T>
- Type Parameters:
- T- specific annotation class
- All Implemented Interfaces:
- FieldAnnotationProcessor<T>
- Direct Known Subclasses:
- AutoMappedFieldAnnotationProcessor
public abstract class AbstractFieldAnnotationProcessor<T extends Annotation>
extends Object
implements FieldAnnotationProcessor<T>
Class with basic functionality for processor of some field-mapping annotation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateParameters(T specificAnnotation) Extracts parameters from annotation.protected abstract Class<? extends FieldMappingStrategy>Provides class ofFieldMappingStrategyspecific for this annotation.voidprocess(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, Annotation annotation) Processes field-mapping annotation and adds new Mapping Definition element to builder.protected abstract voidprocessSpecificAnnotation(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, T annotation) Processes specific field-mapping annotation and adds new Mapping definition element to builder.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.search.index.mapping.processor.FieldAnnotationProcessorgetAnnotationClass
- 
Constructor Details- 
AbstractFieldAnnotationProcessorpublic AbstractFieldAnnotationProcessor()
 
- 
- 
Method Details- 
processpublic void process(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, Annotation annotation) Description copied from interface:FieldAnnotationProcessorProcesses field-mapping annotation and adds new Mapping Definition element to builder.- Specified by:
- processin interface- FieldAnnotationProcessor<T extends Annotation>
- Parameters:
- builder- Mapping Definition builder
- rootEntityMetaClass- entity holds indexed properties
- annotation- processed annotation
 
- 
createParametersExtracts parameters from annotation.- Parameters:
- specificAnnotation- processed annotation
- Returns:
- map with parameters
 
- 
processSpecificAnnotationprotected abstract void processSpecificAnnotation(MappingDefinition.MappingDefinitionBuilder builder, MetaClass rootEntityMetaClass, T annotation) Processes specific field-mapping annotation and adds new Mapping definition element to builder.- Parameters:
- builder- Mapping Definition builder
- rootEntityMetaClass- entity holds indexed properties
- annotation- processed annotation
 
- 
getFieldMappingStrategyClassProvides class ofFieldMappingStrategyspecific for this annotation.- Returns:
- mapping strategy
 
 
-