类的使用
org.springframework.context.support.GenericApplicationContext
使用GenericApplicationContext的程序包 程序包 说明 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.test.context.support Support classes for the Spring TestContext Framework.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.context.annotation中GenericApplicationContext的使用
org.springframework.context.annotation中GenericApplicationContext的子类 修饰符和类型 类 说明 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中GenericApplicationContext的使用
org.springframework.context.support中GenericApplicationContext的子类 修饰符和类型 类 说明 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中GenericApplicationContext的使用
org.springframework.jca.context中GenericApplicationContext的子类 修饰符和类型 类 说明 classResourceAdapterApplicationContextApplicationContextimplementation for a JCA ResourceAdapter.org.springframework.test.context.support中GenericApplicationContext的使用
返回GenericApplicationContext的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected GenericApplicationContextAbstractGenericContextLoader. createContext()Factory method for creating theGenericApplicationContextused by thisContextLoader.参数类型为GenericApplicationContext的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 protected abstract BeanDefinitionReaderAbstractGenericContextLoader. createBeanDefinitionReader(GenericApplicationContext context)Factory method for creating a newBeanDefinitionReaderfor loading bean definitions into the suppliedcontext.protected BeanDefinitionReaderAnnotationConfigContextLoader. createBeanDefinitionReader(GenericApplicationContext context)AnnotationConfigContextLoadershould be used as aSmartContextLoader, not as a legacyContextLoader.protected BeanDefinitionReaderGenericPropertiesContextLoader. createBeanDefinitionReader(GenericApplicationContext context)Creates a newPropertiesBeanDefinitionReader.protected BeanDefinitionReaderGenericXmlContextLoader. createBeanDefinitionReader(GenericApplicationContext context)Create a newXmlBeanDefinitionReader.protected voidAbstractGenericContextLoader. customizeContext(GenericApplicationContext context)Customize theGenericApplicationContextcreated by thisContextLoaderafter bean definitions have been loaded into the context but before the context is refreshed.protected voidAbstractGenericContextLoader. loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig)Load bean definitions into the suppliedcontextfrom the locations or classes in the suppliedMergedContextConfiguration.protected voidAnnotationConfigContextLoader. loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig)Register classes in the suppliedcontextfrom the classes in the suppliedMergedContextConfiguration.protected voidGenericGroovyXmlContextLoader. loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig)Load bean definitions into the suppliedcontextfrom the locations in the suppliedMergedContextConfigurationusing aGroovyBeanDefinitionReader.protected voidAbstractGenericContextLoader. prepareContext(GenericApplicationContext context)Prepare theGenericApplicationContextcreated by thisContextLoader.org.springframework.web.context.support中GenericApplicationContext的使用
org.springframework.web.context.support中GenericApplicationContext的子类 修饰符和类型 类 说明 classGenericWebApplicationContextSubclass ofGenericApplicationContext, suitable for web environments.classStaticWebApplicationContextStaticWebApplicationContextimplementation for testing.