|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser
org.mule.config.spring.parsers.collection.OrphanMapDefinitionParser
public class OrphanMapDefinitionParser
Creates a single, stand-alone map object and processes standard Spring sub elements
Field Summary | |
---|---|
protected boolean |
attributeName
|
protected boolean |
dynamicName
|
protected java.lang.Class |
mapClass
|
protected java.lang.String |
name
|
Fields inherited from class org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser |
---|
ATTRIBUTE_CLASS, ATTRIBUTE_ID, ATTRIBUTE_NAME, ATTRIBUTE_REF, ATTRIBUTE_REF_SUFFIX, ATTRIBUTE_REFS, ATTRIBUTE_REFS_SUFFIX, beanPropertyConfiguration, logger, ROOT_ELEMENT, singleton |
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
ID_ATTRIBUTE, NAME_ATTRIBUTE |
Constructor Summary | |
---|---|
OrphanMapDefinitionParser(java.lang.Class mapClass)
Creates a Map parser that will add the map directly to the registry |
|
OrphanMapDefinitionParser(java.lang.Class mapClass,
java.lang.String name)
Creates a Map parser that will add the map directly to the registry |
|
OrphanMapDefinitionParser(java.lang.Class mapClass,
java.lang.String name,
boolean attributeName)
Creates a Map parser that will add the map directly to the registry |
Method Summary | |
---|---|
protected void |
doParse(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Parse the supplied Element and populate the supplied
BeanDefinitionBuilder as required. |
protected java.lang.Class |
getBeanClass(org.w3c.dom.Element element)
Determine the bean class corresponding to the supplied Element . |
protected void |
preProcess(org.w3c.dom.Element element)
Hook method that derived classes can implement to modify internal state before processing. |
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
org.springframework.beans.factory.support.AbstractBeanDefinition definition,
org.springframework.beans.factory.xml.ParserContext parserContext)
|
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.beans.factory.xml.BeanDefinitionParser |
---|
parse |
Field Detail |
---|
protected java.lang.Class mapClass
protected java.lang.String name
protected boolean attributeName
protected boolean dynamicName
Constructor Detail |
---|
public OrphanMapDefinitionParser(java.lang.Class mapClass)
mapClass
- the type of map to createpublic OrphanMapDefinitionParser(java.lang.Class mapClass, java.lang.String name)
mapClass
- the type of map to createname
- the name of the map propertypublic OrphanMapDefinitionParser(java.lang.Class mapClass, java.lang.String name, boolean attributeName)
mapClass
- the type of map to createname
- the name of the map propertyattributeName
- whether the name specified is actually an attribute name on the element. The map name will
be retrieved from the element attribute.Method Detail |
---|
protected java.lang.Class getBeanClass(org.w3c.dom.Element element)
AbstractMuleBeanDefinitionParser
Element
.
getBeanClass
in class AbstractMuleBeanDefinitionParser
element
- the Element
that is being parsed
Class
of the bean that is being defined via parsing the supplied Element
(must not be null
)AbstractMuleBeanDefinitionParser.parseInternal(org.w3c.dom.Element,ParserContext)
protected void doParse(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
AbstractMuleBeanDefinitionParser
Element
and populate the supplied
BeanDefinitionBuilder
as required.
The default implementation delegates to the doParse
version without ParserContext argument.
doParse
in class AbstractMuleBeanDefinitionParser
element
- the XML element being parsedparserContext
- the object encapsulating the current state of the parsing processbuilder
- used to define the BeanDefinition
protected void preProcess(org.w3c.dom.Element element)
AbstractMuleBeanDefinitionParser
preProcess
in class AbstractMuleBeanDefinitionParser
protected java.lang.String resolveId(org.w3c.dom.Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext) throws org.springframework.beans.factory.BeanDefinitionStoreException
resolveId
in class AbstractMuleBeanDefinitionParser
org.springframework.beans.factory.BeanDefinitionStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |