类 AnnotationConfigBeanDefinitionParser
- java.lang.Object
- org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser
- 所有已实现的接口:
BeanDefinitionParser
public class AnnotationConfigBeanDefinitionParser extends Object implements BeanDefinitionParser
Parser for the <context:annotation-config/> element.- 从以下版本开始:
- 2.5
- 作者:
- Mark Fisher, Juergen Hoeller, Christian Dupuis
- 另请参阅:
AnnotationConfigUtils
构造器概要
构造器 构造器 说明 AnnotationConfigBeanDefinitionParser()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BeanDefinition
parse(Element element, ParserContext parserContext)
Parse the specifiedElement
and register the resultingBeanDefinition(s)
with theBeanDefinitionRegistry
embedded in the suppliedParserContext
.
构造器详细资料
AnnotationConfigBeanDefinitionParser
public AnnotationConfigBeanDefinitionParser()
方法详细资料
parse
public BeanDefinition parse(Element element, ParserContext parserContext)
从接口复制的说明:BeanDefinitionParser
Parse the specifiedElement
and register the resultingBeanDefinition(s)
with theBeanDefinitionRegistry
embedded in the suppliedParserContext
.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 returnnull
if they will not be used in a nested fashion.- 指定者:
parse
在接口中BeanDefinitionParser
- 参数:
element
- the element that is to be parsed into one or moreBeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process; provides access to aBeanDefinitionRegistry
- 返回:
- the primary
BeanDefinition