接口的使用
org.springframework.beans.factory.HierarchicalBeanFactory
使用HierarchicalBeanFactory的程序包 程序包 说明 org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factorypackage.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactoryimplementation, including a standard "spring-beans" XSD.org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.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.jca.context Integration package that allows for deploying a Spring application context as a JCA 1.7 compliant RAR file.org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory.config中HierarchicalBeanFactory的使用
org.springframework.beans.factory.config中HierarchicalBeanFactory的子接口 修饰符和类型 接口 说明 interfaceConfigurableBeanFactoryConfiguration interface to be implemented by most bean factories.interfaceConfigurableListableBeanFactoryConfiguration interface to be implemented by most listable bean factories.org.springframework.beans.factory.support中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.beans.factory.support中的类 修饰符和类型 类 说明 classAbstractAutowireCapableBeanFactoryAbstract bean factory superclass that implements default bean creation, with the full capabilities specified by theRootBeanDefinitionclass.classAbstractBeanFactoryAbstract base class forBeanFactoryimplementations, providing the full capabilities of theConfigurableBeanFactorySPI.classDefaultListableBeanFactorySpring's default implementation of theConfigurableListableBeanFactoryandBeanDefinitionRegistryinterfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.org.springframework.beans.factory.xml中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.beans.factory.xml中的类 修饰符和类型 类 说明 classXmlBeanFactory已过时。as of Spring 3.1 in favor ofDefaultListableBeanFactoryandXmlBeanDefinitionReaderorg.springframework.context中HierarchicalBeanFactory的使用
org.springframework.context中HierarchicalBeanFactory的子接口 修饰符和类型 接口 说明 interfaceApplicationContextCentral interface to provide configuration for an application.interfaceConfigurableApplicationContextSPI interface to be implemented by most if not all application contexts.org.springframework.context.annotation中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.context.annotation中的类 修饰符和类型 类 说明 classAnnotationConfigApplicationContextStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjavax.injectannotations.org.springframework.context.support中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.context.support中的类 修饰符和类型 类 说明 classAbstractApplicationContextAbstract implementation of theApplicationContextinterface.classAbstractRefreshableApplicationContextBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableConfigApplicationContextAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classAbstractXmlApplicationContextConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classClassPathXmlApplicationContextStandalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.classFileSystemXmlApplicationContextStandalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.classGenericApplicationContextGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classGenericGroovyApplicationContextAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classGenericXmlApplicationContextConvenient application context with built-in XML support.classStaticApplicationContextApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.org.springframework.jca.context中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.jca.context中的类 修饰符和类型 类 说明 classResourceAdapterApplicationContextApplicationContextimplementation for a JCA ResourceAdapter.org.springframework.web.context中HierarchicalBeanFactory的使用
org.springframework.web.context中HierarchicalBeanFactory的子接口 修饰符和类型 接口 说明 interfaceConfigurableWebApplicationContextInterface to be implemented by configurable web application contexts.interfaceWebApplicationContextInterface to provide configuration for a web application.org.springframework.web.context.support中HierarchicalBeanFactory的使用
实现HierarchicalBeanFactory的org.springframework.web.context.support中的类 修饰符和类型 类 说明 classAbstractRefreshableWebApplicationContextAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classAnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.classGenericWebApplicationContextSubclass ofGenericApplicationContext, suitable for web environments.classGroovyWebApplicationContextWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextStaticWebApplicationContextimplementation for testing.classXmlWebApplicationContextWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.