接口的使用
org.springframework.beans.factory.support.BeanDefinitionReader
使用BeanDefinitionReader的程序包 程序包 说明 org.springframework.beans.factory.groovy Support package for Groovy-based bean definitions.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.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.test.context.support Support classes for the Spring TestContext Framework.org.springframework.beans.factory.groovy中BeanDefinitionReader的使用
实现BeanDefinitionReader的org.springframework.beans.factory.groovy中的类 修饰符和类型 类 说明 class
GroovyBeanDefinitionReader
A Groovy-based reader for Spring bean definitions: like a Groovy builder, but more of a DSL for Spring configuration.org.springframework.beans.factory.support中BeanDefinitionReader的使用
实现BeanDefinitionReader的org.springframework.beans.factory.support中的类 修饰符和类型 类 说明 class
AbstractBeanDefinitionReader
Abstract base class for bean definition readers which implement theBeanDefinitionReader
interface.class
PropertiesBeanDefinitionReader
Bean definition reader for a simple properties format.org.springframework.beans.factory.xml中BeanDefinitionReader的使用
实现BeanDefinitionReader的org.springframework.beans.factory.xml中的类 修饰符和类型 类 说明 class
XmlBeanDefinitionReader
Bean definition reader for XML bean definitions.org.springframework.context.annotation中BeanDefinitionReader的使用
返回变量类型为BeanDefinitionReader的类型的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 Class<? extends BeanDefinitionReader>
reader()
BeanDefinitionReader
implementation to use when processing resources specified via theImportResource.value()
attribute.org.springframework.test.context.support中BeanDefinitionReader的使用
返回BeanDefinitionReader的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected abstract BeanDefinitionReader
AbstractGenericContextLoader. createBeanDefinitionReader(GenericApplicationContext context)
Factory method for creating a newBeanDefinitionReader
for loading bean definitions into the suppliedcontext
.protected BeanDefinitionReader
AnnotationConfigContextLoader. createBeanDefinitionReader(GenericApplicationContext context)
AnnotationConfigContextLoader
should be used as aSmartContextLoader
, not as a legacyContextLoader
.protected BeanDefinitionReader
GenericPropertiesContextLoader. createBeanDefinitionReader(GenericApplicationContext context)
Creates a newPropertiesBeanDefinitionReader
.protected BeanDefinitionReader
GenericXmlContextLoader. createBeanDefinitionReader(GenericApplicationContext context)
Create a newXmlBeanDefinitionReader
.