Class PojoMappingHelper
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.building.impl.PojoMappingHelper
- All Implemented Interfaces:
IndexedEntityBindingMapperContext
-
Method Summary
Modifier and TypeMethodDescriptiongetOrCreatePathTracker(MappingElement mappingElement, TreeFilterDefinition filterDefinition) Get the shared path-tracker for a given mapping element involving aTreeFilterDefinition, e.g. an@IndexedEmbedded.
-
Method Details
-
beanResolver
-
failureCollector
-
contributorProvider
-
introspector
-
indexModelBinder
-
typeAdditionalMetadataProvider
-
getOrCreatePathTracker
public TreeFilterPathTracker getOrCreatePathTracker(MappingElement mappingElement, TreeFilterDefinition filterDefinition) Description copied from interface:IndexedEntityBindingMapperContextGet the shared path-tracker for a given mapping element involving aTreeFilterDefinition, e.g. an@IndexedEmbedded.A single mapping element may lead to multiple "uses": for example an indexed-embedded may be inherited by sub-types of the type defining the indexed-embedded (the "hosting type"), or an indexed-embedded may recurse (directly or indirectly) into the the type defining the indexed-embedded. In such case, each "use" of the indexed-embedded may occur in a different context and thus use different parts of the definition, so we need a single, shared path tracker across all occurrences to gives us a complete view of encountered paths and to allow us to decide whether an includePaths/excludePaths is useful or not.
- Specified by:
getOrCreatePathTrackerin interfaceIndexedEntityBindingMapperContext- Parameters:
mappingElement- A unique representation of the mapping element involving a tree filter; if the same mapping element is applied in multiple places, this method must be called with mapping elements that are equal according toMappingElement.equals(Object)/MappingElement.hashCode().filterDefinition- The filter definition passed to theTreeFilterPathTrackerupon creation.- Returns:
- The path tracker for that definition.
-