Class PropertyMappingAnnotationProcessorContextImpl
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.PropertyMappingAnnotationProcessorContextImpl
- All Implemented Interfaces:
MappingAnnotatedElement,MappingAnnotatedProperty,MappingAnnotationProcessorContext,PropertyMappingAnnotationProcessorContext
public class PropertyMappingAnnotationProcessorContextImpl
extends AbstractMappingAnnotationProcessorContext
implements PropertyMappingAnnotationProcessorContext, MappingAnnotatedProperty
-
Field Summary
Fields inherited from class org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
annotationHelper -
Constructor Summary
ConstructorsConstructorDescriptionPropertyMappingAnnotationProcessorContextImpl(PojoRawTypeModel<?> typeModel, PojoPropertyModel<?> propertyModel, Annotation annotation, AnnotationHelper annotationHelper, PojoMappingConfigurationContext configurationContext) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>javaClass(ContainerExtractorPath extractorPath) name()Methods inherited from class org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
toBeanReference, toContainerExtractorPath, toNullIfDefault, toPojoModelPathValueNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.MappingAnnotationProcessorContext
toBeanReference, toBeanReference, toContainerExtractorPath, toMap, toNullIfDefault, toPojoModelPathValueNode
-
Constructor Details
-
PropertyMappingAnnotationProcessorContextImpl
public PropertyMappingAnnotationProcessorContextImpl(PojoRawTypeModel<?> typeModel, PojoPropertyModel<?> propertyModel, Annotation annotation, AnnotationHelper annotationHelper, PojoMappingConfigurationContext configurationContext)
-
-
Method Details
-
annotatedElement
- Specified by:
annotatedElementin interfaceMappingAnnotationProcessorContext- Specified by:
annotatedElementin interfacePropertyMappingAnnotationProcessorContext- Returns:
- A representation of the annotated element.
-
eventContext
- Specified by:
eventContextin interfaceMappingAnnotationProcessorContext- Returns:
- An event context describing the annotation being processed and its location, for use in log messages and exception messages.
-
javaClass
- Specified by:
javaClassin interfaceMappingAnnotatedElement- Returns:
- The Java class corresponding to the raw type of the annotated element.
-
javaClass
- Specified by:
javaClassin interfaceMappingAnnotatedProperty- Parameters:
extractorPath- A container extractor path, possibly justContainerExtractorPath.defaultExtractors().- Returns:
- The raw type of values one would obtain
by using the given container extractor path to extract values from this property,
or
Optional.empty()if the container extractor path cannot be applied.
-
name
- Specified by:
namein interfaceMappingAnnotatedProperty- Returns:
- The name of the annotated property. In the case of a getter method, the name does not include the "get" prefix and the first character is lowercased.
-
allAnnotations
- Specified by:
allAnnotationsin interfaceMappingAnnotatedElement- Returns:
- All annotations declared on the annotated element.
-