public abstract class AbstractSerialDelegatingDefinitionParser extends AbstractDelegatingDefinitionParser
Since each bean typically needs a spearate name, this class guarantees that the name and id attributes are reset before each call. Delegates can then modify these on the element without worrying about interfering with other parsers.
Typically, subclasses will add additional processing with
PreProcessor
and
PostProcessor
anonymous classes.
logger
Constructor and Description |
---|
AbstractSerialDelegatingDefinitionParser() |
AbstractSerialDelegatingDefinitionParser(boolean doReset) |
Modifier and Type | Method and Description |
---|---|
protected MuleDefinitionParserConfiguration |
addDelegate(MuleDefinitionParser delegate) |
protected void |
addHandledException(Class exception) |
static void |
disableAttribute(MuleDefinitionParser delegate,
String attribute) |
static void |
disableAttributes(MuleDefinitionParser delegate,
String[] attributes) |
static void |
disableAttributes(MuleDefinitionParser delegate,
String[][] attributes) |
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
doSingleBean(int index,
MuleDefinitionParser parser,
Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
static void |
enableAttribute(MuleDefinitionParser delegate,
String attribute) |
static void |
enableAttributes(MuleDefinitionParser delegate,
String[] attributes) |
static void |
enableAttributes(MuleDefinitionParser delegate,
String[][] attributes) |
static void |
enableAttributes(MuleDefinitionParser delegate,
String[] attributes,
boolean enable)
A utility class for selecting certain attributes.
|
protected boolean |
isExceptionHandled(Exception e) |
org.springframework.beans.factory.support.AbstractBeanDefinition |
muleParse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected void |
resetAttribute(Element element,
String name,
String value) |
protected void |
resetNameAndId(Element element) |
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, getBeanName, getDelegate, parseInternal, registerPostProcessor, registerPreProcessor, removeIgnored, setIgnoredDefault, size
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
public AbstractSerialDelegatingDefinitionParser()
public AbstractSerialDelegatingDefinitionParser(boolean doReset)
doReset
- Should the name be reset after called. This is typically true (it protects the
parent from changes made by children) unless this is itself nested.public org.springframework.beans.factory.support.AbstractBeanDefinition muleParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
protected boolean isExceptionHandled(Exception e)
protected org.springframework.beans.factory.support.AbstractBeanDefinition doSingleBean(int index, MuleDefinitionParser parser, Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
protected MuleDefinitionParserConfiguration addDelegate(MuleDefinitionParser delegate)
addDelegate
in class AbstractDelegatingDefinitionParser
protected void resetNameAndId(Element element)
protected void addHandledException(Class exception)
public static void enableAttributes(MuleDefinitionParser delegate, String[] attributes, boolean enable)
delegate
- attributes
- enable
- public static void enableAttributes(MuleDefinitionParser delegate, String[][] attributes)
public static void enableAttributes(MuleDefinitionParser delegate, String[] attributes)
public static void enableAttribute(MuleDefinitionParser delegate, String attribute)
public static void disableAttributes(MuleDefinitionParser delegate, String[][] attributes)
public static void disableAttributes(MuleDefinitionParser delegate, String[] attributes)
public static void disableAttribute(MuleDefinitionParser delegate, String attribute)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.