public class CouchbaseClusterInfoParser extends 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. |
ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
CouchbaseClusterInfoParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
doParse(Element element,
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,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the bean ID and assign a default if not set.
|
doParse, getBeanClassName, getParentName, parseInternal
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
public 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, AbstractBeanDefinition definition, ParserContext parserContext)
resolveId
in class AbstractBeanDefinitionParser
element
- 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 AbstractSingleBeanDefinitionParser
element
- the XML element which contains the attributes.protected void doParse(Element element, BeanDefinitionBuilder builder)
doParse
in class AbstractSingleBeanDefinitionParser
element
- the XML element which contains the attributes.builder
- the builder which builds the bean.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.