Top Description Fields Constructors Methods
org.springframework.context.config

pack-priv Class LoadTimeWeaverBeanDefinitionParser

extends AbstractSingleBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.parsing.BeanComponentDefinition, org.springframework.beans.factory.support.AbstractBeanDefinition, .BeanDefinitionBuilder, .RootBeanDefinition, org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser, .ParserContext, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.weaving.AspectJWeavingEnabler, org.springframework.lang.Nullable, org.springframework.util.ClassUtils

Parser for the <context:load-time-weaver/> element.
Author
Juergen Hoeller
Since
2.5

Field Summary

Modifier and TypeField and Description
private static final String
public static final String
ASPECTJ_WEAVING_ENABLER_BEAN_NAME

The bean name of the internally managed AspectJ weaving enabler.

private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
doParse(Element
the XML element being parsed
element
,
ParserContext
the object encapsulating the current state of the parsing process
parserContext
,
BeanDefinitionBuilder
used to define the BeanDefinition
builder
)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.
protected String
getBeanClassName(Element
the Element that is being parsed
element
)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClassName.

Determine the bean class name corresponding to the supplied Element.
protected boolean
protected boolean
protected String
resolveId(Element
the element that the bean definition has been built from
element
,
AbstractBeanDefinition
the bean definition to be registered
definition
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied BeanDefinition.
Inherited from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser:
doParsegetBeanClassgetParentNameparseInternal

Field Detail

ASPECTJ_WEAVING_ATTRIBUTEback to summary
private static final String ASPECTJ_WEAVING_ATTRIBUTE
ASPECTJ_WEAVING_ENABLER_BEAN_NAMEback to summary
public static final String ASPECTJ_WEAVING_ENABLER_BEAN_NAME

The bean name of the internally managed AspectJ weaving enabler.

Since
4.3.1
ASPECTJ_WEAVING_ENABLER_CLASS_NAMEback to summary
private static final String ASPECTJ_WEAVING_ENABLER_CLASS_NAME
DEFAULT_LOAD_TIME_WEAVER_CLASS_NAMEback to summary
private static final String DEFAULT_LOAD_TIME_WEAVER_CLASS_NAME
WEAVER_CLASS_ATTRIBUTEback to summary
private static final String WEAVER_CLASS_ATTRIBUTE

Constructor Detail

LoadTimeWeaverBeanDefinitionParserback to summary
pack-priv LoadTimeWeaverBeanDefinitionParser()

Method Detail

doParseback to summary
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Doc from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.

The default implementation delegates to the doParse version without ParserContext argument.

Parameters
element:Element

the XML element being parsed

parserContext:ParserContext

the object encapsulating the current state of the parsing process

builder:BeanDefinitionBuilder

used to define the BeanDefinition

Annotations
@Override
getBeanClassNameback to summary
protected String getBeanClassName(Element element)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClassName.

Doc from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClassName.

Determine the bean class name corresponding to the supplied Element.

Parameters
element:Element

the Element that is being parsed

Returns:String

the class name of the bean that is being defined via parsing the supplied Element, or null if none

Annotations
@Override
isAspectJWeavingEnabledback to summary
protected boolean isAspectJWeavingEnabled(String value, ParserContext parserContext)
isBeanConfigurerAspectEnabledback to summary
protected boolean isBeanConfigurerAspectEnabled(ClassLoader beanClassLoader)
resolveIdback to summary
protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied 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.

Parameters
element:Element

the element that the bean definition has been built from

definition:AbstractBeanDefinition

the bean definition to be registered

parserContext:ParserContext

the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry

Returns:String

the resolved id

Annotations
@Override