public class CouchbaseClusterInfoParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
ClusterInfo, to be constructed from a Cluster reference.
If no reference is given, the default reference is used.
See attributes CLUSTER_REF_ATTR, LOGIN_ATTR and PASSWORD_ATTR.| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_REF_ATTR
The
cluster-ref attribute in a cluster info definition defines the cluster to build from. |
static String |
LOGIN_ATTR
The
login attribute in a cluster info definition defines the credential to use (can also be a
bucket level credential). |
static String |
PASSWORD_ATTR
The
password attribute in a cluster info definition defines the credential's password. |
| Constructor and Description |
|---|
CouchbaseClusterInfoParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doParse(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Parse the bean definition and build up the bean.
|
protected Class |
getBeanClass(Element element)
Defines the bean class that will be constructed.
|
protected String |
resolveId(Element element,
org.springframework.beans.factory.support.AbstractBeanDefinition definition,
org.springframework.beans.factory.xml.ParserContext parserContext)
Resolve the bean ID and assign a default if not set.
|
doParse, getBeanClassName, getParentName, parseInternalpublic static final String CLUSTER_REF_ATTR
cluster-ref attribute in a cluster info definition defines the cluster to build from.public static final String LOGIN_ATTR
login attribute in a cluster info definition defines the credential to use (can also be a
bucket level credential).public static final String PASSWORD_ATTR
password attribute in a cluster info definition defines the credential's password.protected String resolveId(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext)
resolveId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParserelement - the XML element which contains the attributes.definition - the bean definition to work with.parserContext - encapsulates the parsing state and configuration.protected Class getBeanClass(Element element)
getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParserelement - the XML element which contains the attributes.protected void doParse(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParserelement - the XML element which contains the attributes.builder - the builder which builds the bean.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.