|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gemini.blueprint.blueprint.config.internal.BlueprintParser
public class BlueprintParser
Stateful class that handles the parsing details of a <component> elements. Borrows heavily from
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.
Field Summary | |
---|---|
static String |
BEAN
|
static String |
COMPONENT_ID_ATTR
|
static String |
CONSTRUCTOR_ARG
|
static String |
DECLARED_SCOPE
|
static String |
NAMESPACE_URI
|
Constructor Summary | |
---|---|
BlueprintParser()
|
|
BlueprintParser(org.springframework.beans.factory.parsing.ParseState parseState,
Collection<String> usedNames)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public BlueprintParser()
public BlueprintParser(org.springframework.beans.factory.parsing.ParseState parseState, Collection<String> usedNames)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |