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

public Class AnnotationDrivenBeanDefinitionParser

extends Object
implements BeanDefinitionParser
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.xml.BeanDefinitionParser
Imports
org.w3c.dom.Element, org.springframework.aop.config.AopNamespaceUtils, org.springframework.beans.factory.config.BeanDefinition, .BeanDefinitionHolder, org.springframework.beans.factory.parsing.BeanComponentDefinition, .CompositeComponentDefinition, org.springframework.beans.factory.support.BeanDefinitionBuilder, .BeanDefinitionRegistry, org.springframework.beans.factory.xml.BeanDefinitionParser, .ParserContext, org.springframework.lang.Nullable, org.springframework.util.StringUtils

Parser for the 'annotation-driven' element of the 'task' namespace.
Authors
Mark Fisher, Juergen Hoeller, Ramnivas Laddad, Chris Beams, Stephane Nicoll
Since
3.0

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BeanDefinition
parse(Element
the element that is to be parsed into one or more BeanDefinitions
element
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Implements org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

Parse the specified Element and register the resulting BeanDefinition(s) with the BeanDefinitionRegistry embedded in the supplied ParserContext.
private void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASYNC_EXECUTION_ASPECT_CLASS_NAMEback to summary
private static final String ASYNC_EXECUTION_ASPECT_CLASS_NAME

Constructor Detail

AnnotationDrivenBeanDefinitionParserback to summary
public AnnotationDrivenBeanDefinitionParser()

Method Detail

parseback to summary
public BeanDefinition parse(Element element, ParserContext parserContext)

Implements org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

Doc from org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

Parse the specified Element and register the resulting BeanDefinition(s) with the BeanDefinitionRegistry embedded in the supplied ParserContext.

Implementations must return the primary BeanDefinition that results from the parse if they will ever be used in a nested fashion (for example as an inner tag in a <property/> tag). Implementations may return null if they will not be used in a nested fashion.

Parameters
element:Element

the element that is to be parsed into one or more BeanDefinitions

parserContext:ParserContext

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

Returns:BeanDefinition

the primary BeanDefinition

Annotations
@Override
@Nullable
registerAsyncExecutionAspectback to summary
private void registerAsyncExecutionAspect(Element element, ParserContext parserContext)
registerPostProcessorback to summary
private static void registerPostProcessor(ParserContext parserContext, BeanDefinitionBuilder builder, String beanName)