public class CouchbaseBucketParser extends AbstractSingleBeanDefinitionParser
Bucket, to be constructed from a Cluster reference.
If no reference is given, the default reference is used.
See attributes CLUSTER_REF_ATTR, BUCKETNAME_ATTR, USERNAME_ATTR and BUCKETPASSWORD_ATTR.| Modifier and Type | Field and Description |
|---|---|
static String |
BUCKETNAME_ATTR
The
bucketName attribute in a bucket definition defines the name of the bucket to open. |
static String |
BUCKETPASSWORD_ATTR
The
bucketPassword attribute in a bucket definition defines the password of the bucket/user of the bucket to open. |
static String |
CLUSTER_REF_ATTR
The
cluster-ref attribute in a bucket definition defines the cluster to build from. |
static String |
USERNAME_ATTR |
ID_ATTRIBUTE, NAME_ATTRIBUTE| Constructor and Description |
|---|
CouchbaseBucketParser() |
| 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, parseInternalparse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliasespublic static final String CLUSTER_REF_ATTR
cluster-ref attribute in a bucket definition defines the cluster to build from.public static final String BUCKETNAME_ATTR
bucketName attribute in a bucket definition defines the name of the bucket to open.public static final String USERNAME_ATTR
public static final String BUCKETPASSWORD_ATTR
bucketPassword attribute in a bucket definition defines the password of the bucket/user of the bucket to open.protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
resolveId in class 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 AbstractSingleBeanDefinitionParserelement - the XML element which contains the attributes.protected void doParse(Element element, BeanDefinitionBuilder builder)
doParse in class AbstractSingleBeanDefinitionParserelement - the XML element which contains the attributes.builder - the builder which builds the bean.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.