org.springframework.data.document.mongodb.config
Class ParsingUtils

java.lang.Object
  extended by org.springframework.data.document.mongodb.config.ParsingUtils

abstract class ParsingUtils
extends java.lang.Object


Constructor Summary
ParsingUtils()
           
 
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
 

Constructor Detail

ParsingUtils

ParsingUtils()
Method Detail

parseReplicaSet

static boolean parseReplicaSet(ParserContext parserContext,
                               org.w3c.dom.Element element,
                               BeanDefinitionBuilder mongoBuilder)
Parses the mongo replica-set element.

Parameters:
parserContext - the parser context
element - the mongo element
mongoBuilder - 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)