org.springframework.data.couchbase.config
Class CouchbaseParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
org.springframework.data.couchbase.config.CouchbaseParser
- All Implemented Interfaces:
- BeanDefinitionParser
public class CouchbaseParser
- extends AbstractSingleBeanDefinitionParser
Parser for "" bean definitions.
The outcome of this bean definition parser will be a constructed CouchbaseClient.
- Author:
- Michael Nitschinger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CouchbaseParser
public CouchbaseParser()
getBeanClass
protected Class getBeanClass(Element element)
- Defines the bean class that will be constructed.
- Overrides:
getBeanClass in class AbstractSingleBeanDefinitionParser
- Parameters:
element - the XML element which contains the attributes.
- Returns:
- the class type to instantiate.
doParse
protected void doParse(Element element,
BeanDefinitionBuilder bean)
- Parse the bean definition and build up the bean.
- Overrides:
doParse in class AbstractSingleBeanDefinitionParser
- Parameters:
element - the XML element which contains the attributes.bean - the builder which builds the bean.
resolveId
protected String resolveId(Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
- Resolve the bean ID and assign a default if not set.
- Overrides:
resolveId in class AbstractBeanDefinitionParser
- Parameters:
element - the XML element which contains the attributes.definition - the bean definition to work with.parserContext - encapsulates the parsing state and configuration.
- Returns:
- the ID to work with.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.