类的使用
org.springframework.beans.factory.xml.XmlReaderContext
使用XmlReaderContext的程序包 程序包 说明 org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactory
implementation, including a standard "spring-beans" XSD.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.beans.factory.xml中XmlReaderContext的使用
返回XmlReaderContext的org.springframework.beans.factory.xml中的方法 修饰符和类型 方法 说明 XmlReaderContext
XmlBeanDefinitionReader. createReaderContext(Resource resource)
Create theXmlReaderContext
to pass over to the document reader.XmlReaderContext
BeanDefinitionParserDelegate. getReaderContext()
Get theXmlReaderContext
associated with this helper instance.protected XmlReaderContext
DefaultBeanDefinitionDocumentReader. getReaderContext()
Return the descriptor for the XML resource that this parser works on.XmlReaderContext
ParserContext. getReaderContext()
参数类型为XmlReaderContext的org.springframework.beans.factory.xml中的方法 修饰符和类型 方法 说明 protected BeanDefinitionParserDelegate
DefaultBeanDefinitionDocumentReader. createDelegate(XmlReaderContext readerContext, Element root, BeanDefinitionParserDelegate parentDelegate)
void
BeanDefinitionDocumentReader. registerBeanDefinitions(Document doc, XmlReaderContext readerContext)
Read bean definitions from the given DOM document and register them with the registry in the given reader context.void
DefaultBeanDefinitionDocumentReader. registerBeanDefinitions(Document doc, XmlReaderContext readerContext)
This implementation parses bean definitions according to the "spring-beans" XSD (or DTD, historically).参数类型为XmlReaderContext的org.springframework.beans.factory.xml中的构造器 构造器 说明 BeanDefinitionParserDelegate(XmlReaderContext readerContext)
Create a new BeanDefinitionParserDelegate associated with the suppliedXmlReaderContext
.ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate)
ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition)
org.springframework.context.annotation中XmlReaderContext的使用
参数类型为XmlReaderContext的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 protected ClassPathBeanDefinitionScanner
ComponentScanBeanDefinitionParser. createScanner(XmlReaderContext readerContext, boolean useDefaultFilters)
protected void
ComponentScanBeanDefinitionParser. registerComponents(XmlReaderContext readerContext, Set<BeanDefinitionHolder> beanDefinitions, Element element)