class LoadTimeWeaverBeanDefinitionParser extends AbstractSingleBeanDefinitionParser
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ASPECTJ_WEAVING_ATTRIBUTE |
private static java.lang.String |
ASPECTJ_WEAVING_ENABLER_CLASS_NAME |
private static java.lang.String |
DEFAULT_LOAD_TIME_WEAVER_CLASS_NAME |
private static java.lang.String |
WEAVER_CLASS_ATTRIBUTE |
ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
LoadTimeWeaverBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
doParse(org.w3c.dom.Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder)
Parse the supplied <code>Element</code> and populate the supplied
BeanDefinitionBuilder as required. |
protected java.lang.String |
getBeanClassName(org.w3c.dom.Element element)
Determine the bean class name corresponding to the supplied <code>Element</code>.
|
protected boolean |
isAspectJWeavingEnabled(java.lang.String value,
ParserContext parserContext) |
protected boolean |
isBeanConfigurerAspectEnabled(java.lang.ClassLoader beanClassLoader) |
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the ID for the supplied
BeanDefinition . |
doParse, getBeanClass, getParentName, parseInternal
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
private static final java.lang.String WEAVER_CLASS_ATTRIBUTE
private static final java.lang.String ASPECTJ_WEAVING_ATTRIBUTE
private static final java.lang.String DEFAULT_LOAD_TIME_WEAVER_CLASS_NAME
private static final java.lang.String ASPECTJ_WEAVING_ENABLER_CLASS_NAME
protected java.lang.String getBeanClassName(org.w3c.dom.Element element)
AbstractSingleBeanDefinitionParser
getBeanClassName
in class AbstractSingleBeanDefinitionParser
element
- the Element
that is being parsedElement
, or null
if noneAbstractSingleBeanDefinitionParser.getBeanClass(org.w3c.dom.Element)
protected java.lang.String resolveId(org.w3c.dom.Element element, AbstractBeanDefinition definition, ParserContext parserContext)
AbstractBeanDefinitionParser
BeanDefinition
.
When using generation
, a name is generated automatically.
Otherwise, the ID is extracted from the "id" attribute, potentially with a
fallback
to a generated id.
resolveId
in class AbstractBeanDefinitionParser
element
- the element that the bean definition has been built fromdefinition
- the bean definition to be registeredparserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
protected void doParse(org.w3c.dom.Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
AbstractSingleBeanDefinitionParser
BeanDefinitionBuilder
as required.
The default implementation delegates to the doParse
version without ParserContext argument.
doParse
in class AbstractSingleBeanDefinitionParser
element
- the XML element being parsedparserContext
- the object encapsulating the current state of the parsing processbuilder
- used to define the BeanDefinition
AbstractSingleBeanDefinitionParser.doParse(Element, BeanDefinitionBuilder)
protected boolean isAspectJWeavingEnabled(java.lang.String value, ParserContext parserContext)
protected boolean isBeanConfigurerAspectEnabled(java.lang.ClassLoader beanClassLoader)