public class NonCyclicMappingContext extends MappingContext
| Modifier and Type | Class and Description |
|---|---|
static class |
NonCyclicMappingContext.Factory
Factory constructs instances of the base MappingContext
|
MappingContext.StackElementcapturesFieldContext, containsCycle, depth, fieldMappingStack, globalProperties, isNew, mappersSeen, mapping, properties, resolvedDestinationType, resolvedSourceType, resolvedStrategy, typeCache| Modifier | Constructor and Description |
|---|---|
protected |
NonCyclicMappingContext(Map<Object,Object> globalProperties) |
| Modifier and Type | Method and Description |
|---|---|
<S,D> void |
cacheMappedObject(S source,
Type<Object> destinationType,
D destination)
Caches an object instance which has been mapped for a particular source
instance and destination type in this mapping context; this will later be
referenced in avoiding infinite recursion mapping the same object.
|
<D> D |
getMappedObject(Object source,
Type<?> destinationType)
Looks for an object which has already been mapped for the source and
destination type in this context.
|
beginMapping, beginMapping, beginMappingField, containsCycle, containsCycle, endMapping, endMappingField, getConcreteClass, getDepth, getDestinationExpressionPaths, getDestinationObjects, getDestinationTypePaths, getFullyQualifiedDestinationPath, getFullyQualifiedSourcePath, getMapperGeneration, getProperty, getResolvedDestinationType, getResolvedSourceType, getResolvedStrategy, getSourceExpressionPaths, getSourceObjects, getSourceTypePaths, registerConcreteClass, registerMapperGeneration, reset, setProperty, setResolvedDestinationType, setResolvedSourceType, setResolvedStrategypublic <S,D> void cacheMappedObject(S source,
Type<Object> destinationType,
D destination)
MappingContextcacheMappedObject in class MappingContextpublic <D> D getMappedObject(Object source, Type<?> destinationType)
MappingContextgetMappedObject in class MappingContextCopyright © 2017 Glasnost. All Rights Reserved.