public class BlueprintParser extends Object
BeanDefinitionParserDelegate
.
Note: Due to its stateful nature, this class is not thread safe.
Note: Since the namespace is important when parsing elements and since mixed elements, from both rfc124 and
Spring can coexist in the same file, reusing the delegate
isn't entirely
possible since the two state needs to be kept in synch.Modifier and Type | Field and Description |
---|---|
static String |
BEAN |
static String |
COMPONENT_ID_ATTR |
static String |
CONSTRUCTOR_ARG |
static String |
DECLARED_SCOPE |
static String |
NAMESPACE_URI |
Constructor and Description |
---|
BlueprintParser() |
BlueprintParser(org.springframework.beans.factory.parsing.ParseState parseState,
Collection<String> usedNames) |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanDefinition |
parse(Element componentElement,
org.springframework.beans.factory.xml.ParserContext parserContext) |
Object |
parseArrayElement(Element arrayEle,
org.springframework.beans.factory.config.BeanDefinition bd)
Parse an array element.
|
org.springframework.beans.factory.config.BeanDefinitionHolder |
parseAsHolder(Element componentElement,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected void |
parseCollectionElements(NodeList elementNodes,
Collection<Object> target,
org.springframework.beans.factory.config.BeanDefinition bd,
String defaultElementType) |
List<?> |
parseListElement(Element collectionEle,
org.springframework.beans.factory.config.BeanDefinition bd)
Parse a list element.
|
Map<?,?> |
parseMapElement(Element mapEle,
org.springframework.beans.factory.config.BeanDefinition bd)
Parse a map element.
|
static Map<?,?> |
parsePropertyMapElement(org.springframework.beans.factory.xml.ParserContext parserContext,
Element ele,
org.springframework.beans.factory.config.BeanDefinition bd) |
static Set<?> |
parsePropertySetElement(org.springframework.beans.factory.xml.ParserContext parserContext,
Element ele,
org.springframework.beans.factory.config.BeanDefinition bd) |
static Object |
parsePropertySubElement(org.springframework.beans.factory.xml.ParserContext parserContext,
Element ele,
org.springframework.beans.factory.config.BeanDefinition bd) |
Properties |
parsePropsElement(Element propsEle)
Parse a props element.
|
Set<?> |
parseSetElement(Element collectionEle,
org.springframework.beans.factory.config.BeanDefinition bd)
Parse a set element.
|
public static final String BEAN
public static final String COMPONENT_ID_ATTR
public static final String CONSTRUCTOR_ARG
public static final String NAMESPACE_URI
public static final String DECLARED_SCOPE
public BlueprintParser()
public BlueprintParser(org.springframework.beans.factory.parsing.ParseState parseState, Collection<String> usedNames)
public org.springframework.beans.factory.config.BeanDefinitionHolder parseAsHolder(Element componentElement, org.springframework.beans.factory.xml.ParserContext parserContext)
public org.springframework.beans.factory.config.BeanDefinition parse(Element componentElement, org.springframework.beans.factory.xml.ParserContext parserContext)
public static Object parsePropertySubElement(org.springframework.beans.factory.xml.ParserContext parserContext, Element ele, org.springframework.beans.factory.config.BeanDefinition bd)
public static Map<?,?> parsePropertyMapElement(org.springframework.beans.factory.xml.ParserContext parserContext, Element ele, org.springframework.beans.factory.config.BeanDefinition bd)
public static Set<?> parsePropertySetElement(org.springframework.beans.factory.xml.ParserContext parserContext, Element ele, org.springframework.beans.factory.config.BeanDefinition bd)
public Object parseArrayElement(Element arrayEle, org.springframework.beans.factory.config.BeanDefinition bd)
public List<?> parseListElement(Element collectionEle, org.springframework.beans.factory.config.BeanDefinition bd)
public Set<?> parseSetElement(Element collectionEle, org.springframework.beans.factory.config.BeanDefinition bd)
protected void parseCollectionElements(NodeList elementNodes, Collection<Object> target, org.springframework.beans.factory.config.BeanDefinition bd, String defaultElementType)
public Map<?,?> parseMapElement(Element mapEle, org.springframework.beans.factory.config.BeanDefinition bd)
public Properties parsePropsElement(Element propsEle)
Copyright © 2006–2017. All rights reserved.