Class MappingMongoConverterParser
java.lang.Object
org.springframework.data.mongodb.config.MappingMongoConverterParser
- All Implemented Interfaces:
BeanDefinitionParser
Bean definition parser for the
mapping-converter element.- Author:
- Jon Brisbin, Oliver Gierke, Maciej Walkowiak, Thomas Darimont, Christoph Strobl, Mark Paluch, Zied Yaich, Tomasz Forys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(Element element, ParserContext parserContext) parseConverter(Element element, ParserContext parserContext) static StringpotentiallyCreateMappingContext(Element element, ParserContext parserContext, BeanDefinition conversionsDefinition, String converterId) Deprecated, for removal: This API element is subject to removal in a future version.since 4.3.static StringpotentiallyCreateMappingContext(Element element, ParserContext parserContext, BeanDefinition conversionsDefinition, String converterId, boolean autoIndexCreation) Create and register theBeanDefinitionfor aMongoMappingContextif not explicitly referenced by a given mapping-context-refattribuite.
-
Constructor Details
-
MappingMongoConverterParser
public MappingMongoConverterParser()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceBeanDefinitionParser
-
potentiallyCreateMappingContext
@Deprecated(since="4.3", forRemoval=true) public static String potentiallyCreateMappingContext(Element element, ParserContext parserContext, @Nullable BeanDefinition conversionsDefinition, @Nullable String converterId) Deprecated, for removal: This API element is subject to removal in a future version.since 4.3. UsepotentiallyCreateMappingContext(Element, ParserContext, BeanDefinition, String, boolean)instead.Create and register theBeanDefinitionfor aMongoMappingContextif not explicitly referenced by a given mapping-context-refattribuite.- Returns:
- the mapping context bean name.
-
potentiallyCreateMappingContext
public static String potentiallyCreateMappingContext(Element element, ParserContext parserContext, @Nullable BeanDefinition conversionsDefinition, @Nullable String converterId, boolean autoIndexCreation) Create and register theBeanDefinitionfor aMongoMappingContextif not explicitly referenced by a given mapping-context-refattribuite.- Returns:
- the mapping context bean name.
-
parseConverter
-