org.springframework.data.document.mongodb.config
Class ParsingUtils
java.lang.Object
org.springframework.data.document.mongodb.config.ParsingUtils
abstract class ParsingUtils
- extends java.lang.Object
Method Summary |
(package private) static boolean |
parseMongoOptions(ParserContext parserContext,
org.w3c.dom.Element element,
BeanDefinitionBuilder mongoBuilder)
Parses the mongo:options sub-element. |
(package private) static boolean |
parseReplicaSet(ParserContext parserContext,
org.w3c.dom.Element element,
BeanDefinitionBuilder mongoBuilder)
Parses the mongo replica-set element. |
(package private) static void |
setPropertyValue(org.w3c.dom.Element element,
BeanDefinitionBuilder builder,
java.lang.String attrName,
java.lang.String propertyName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParsingUtils
ParsingUtils()
parseReplicaSet
static boolean parseReplicaSet(ParserContext parserContext,
org.w3c.dom.Element element,
BeanDefinitionBuilder mongoBuilder)
- Parses the mongo replica-set element.
- Parameters:
parserContext
- the parser contextelement
- the mongo elementmongoBuilder
- the bean definition builder to populate
- Returns:
- true if parsing actually occured, false otherwise
parseMongoOptions
static boolean parseMongoOptions(ParserContext parserContext,
org.w3c.dom.Element element,
BeanDefinitionBuilder mongoBuilder)
- Parses the mongo:options sub-element. Populates the given attribute factory with the proper attributes.
- Returns:
- true if parsing actually occured, false otherwise
setPropertyValue
static void setPropertyValue(org.w3c.dom.Element element,
BeanDefinitionBuilder builder,
java.lang.String attrName,
java.lang.String propertyName)