类的使用
org.springframework.beans.factory.support.DefaultListableBeanFactory
使用DefaultListableBeanFactory的程序包 程序包 说明 org.springframework.aop.framework.autoproxy.target 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.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.test.context.support Support classes for the Spring TestContext Framework.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.aop.framework.autoproxy.target中DefaultListableBeanFactory的使用
返回DefaultListableBeanFactory的org.springframework.aop.framework.autoproxy.target中的方法 修饰符和类型 方法 说明 protected DefaultListableBeanFactory
AbstractBeanFactoryBasedTargetSourceCreator. buildInternalBeanFactory(ConfigurableBeanFactory containingFactory)
Build an internal BeanFactory for resolving target beans.protected DefaultListableBeanFactory
AbstractBeanFactoryBasedTargetSourceCreator. getInternalBeanFactoryForBean(String beanName)
Return the internal BeanFactory to be used for the specified bean.org.springframework.beans.factory.xml中DefaultListableBeanFactory的使用
org.springframework.beans.factory.xml中DefaultListableBeanFactory的子类 修饰符和类型 类 说明 class
XmlBeanFactory
已过时。as of Spring 3.1 in favor ofDefaultListableBeanFactory
andXmlBeanDefinitionReader
org.springframework.context.annotation中DefaultListableBeanFactory的使用
参数类型为DefaultListableBeanFactory的org.springframework.context.annotation中的构造器 构造器 说明 AnnotationConfigApplicationContext(DefaultListableBeanFactory beanFactory)
Create a new AnnotationConfigApplicationContext with the given DefaultListableBeanFactory.org.springframework.context.support中DefaultListableBeanFactory的使用
返回DefaultListableBeanFactory的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected DefaultListableBeanFactory
AbstractRefreshableApplicationContext. createBeanFactory()
Create an internal bean factory for this context.DefaultListableBeanFactory
GenericApplicationContext. getDefaultListableBeanFactory()
Return the underlying bean factory of this context, available for registering bean definitions.参数类型为DefaultListableBeanFactory的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected void
AbstractRefreshableApplicationContext. customizeBeanFactory(DefaultListableBeanFactory beanFactory)
Customize the internal bean factory used by this context.protected abstract void
AbstractRefreshableApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Load bean definitions into the given bean factory, typically through delegating to one or more bean definition readers.protected void
AbstractXmlApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Loads the bean definitions via an XmlBeanDefinitionReader.参数类型为DefaultListableBeanFactory的org.springframework.context.support中的构造器 构造器 说明 GenericApplicationContext(DefaultListableBeanFactory beanFactory)
Create a new GenericApplicationContext with the given DefaultListableBeanFactory.GenericApplicationContext(DefaultListableBeanFactory beanFactory, ApplicationContext parent)
Create a new GenericApplicationContext with the given DefaultListableBeanFactory.org.springframework.test.context.support中DefaultListableBeanFactory的使用
参数类型为DefaultListableBeanFactory的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected void
AbstractGenericContextLoader. customizeBeanFactory(DefaultListableBeanFactory beanFactory)
Customize the internal bean factory of the ApplicationContext created by thisContextLoader
.org.springframework.test.context.web中DefaultListableBeanFactory的使用
参数类型为DefaultListableBeanFactory的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 protected void
AbstractGenericWebContextLoader. customizeBeanFactory(DefaultListableBeanFactory beanFactory, WebMergedContextConfiguration webMergedConfig)
Customize the internal bean factory of theWebApplicationContext
created by this context loader.org.springframework.web.context.support中DefaultListableBeanFactory的使用
参数类型为DefaultListableBeanFactory的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 protected AnnotatedBeanDefinitionReader
AnnotationConfigWebApplicationContext. getAnnotatedBeanDefinitionReader(DefaultListableBeanFactory beanFactory)
Build anAnnotatedBeanDefinitionReader
for the given bean factory.protected ClassPathBeanDefinitionScanner
AnnotationConfigWebApplicationContext. getClassPathBeanDefinitionScanner(DefaultListableBeanFactory beanFactory)
Build aClassPathBeanDefinitionScanner
for the given bean factory.protected void
AnnotationConfigWebApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Register aBeanDefinition
for any classes specified byAnnotationConfigWebApplicationContext.register(Class...)
and scan any packages specified byAnnotationConfigWebApplicationContext.scan(String...)
.protected void
GroovyWebApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Loads the bean definitions via an GroovyBeanDefinitionReader.protected void
XmlWebApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Loads the bean definitions via an XmlBeanDefinitionReader.参数类型为DefaultListableBeanFactory的org.springframework.web.context.support中的构造器 构造器 说明 GenericWebApplicationContext(DefaultListableBeanFactory beanFactory)
Create a new GenericWebApplicationContext with the given DefaultListableBeanFactory.GenericWebApplicationContext(DefaultListableBeanFactory beanFactory, ServletContext servletContext)
Create a new GenericWebApplicationContext with the given DefaultListableBeanFactory.