Class RelaxedTypeBasedAggregationOperationContext
java.lang.Object
org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
org.springframework.data.mongodb.core.aggregation.RelaxedTypeBasedAggregationOperationContext
- All Implemented Interfaces:
CodecRegistryProvider,AggregationOperationContext
public class RelaxedTypeBasedAggregationOperationContext
extends TypeBasedAggregationOperationContext
A
TypeBasedAggregationOperationContext with less restrictive field reference handling, suppressing
InvalidPersistentPropertyPath exceptions when resolving mapped field names.- Since:
- 3.0
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionRelaxedTypeBasedAggregationOperationContext(Class<?> type, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContextfor the given type,MappingContextandQueryMapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposedFields.FieldReferencegetReferenceFor(Field field) Methods inherited from class org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
continueOnMissingFieldReference, continueOnMissingFieldReference, getCodecRegistry, getFields, getMappedObject, getMappedObject, getReference, getReference, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mongodb.CodecRegistryProvider
getCodecFor, hasCodecFor
-
Constructor Details
-
RelaxedTypeBasedAggregationOperationContext
public RelaxedTypeBasedAggregationOperationContext(Class<?> type, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContextfor the given type,MappingContextandQueryMapper.- Parameters:
type- must not be null.mappingContext- must not be null.mapper- must not be null.
-
-
Method Details
-
getReferenceFor
- Overrides:
getReferenceForin classTypeBasedAggregationOperationContext
-