open class AnnotationConfigContextLoader : AbstractGenericContextLoader
Concrete implementation of AbstractGenericContextLoader that loads bean definitions from annotated classes.
See the Javadoc for org.springframework.test.context.ContextConfiguration for a definition of annotated class.
Note: AnnotationConfigContextLoader supports annotated classes rather than the String-based resource locations defined by the legacy org.springframework.test.context.ContextLoader API. Thus, although AnnotationConfigContextLoader extends AbstractGenericContextLoader, AnnotationConfigContextLoader does not support any String-based methods defined by AbstractContextLoader or AbstractGenericContextLoader. Consequently, AnnotationConfigContextLoader should chiefly be considered a org.springframework.test.context.SmartContextLoader rather than a org.springframework.test.context.ContextLoader.
Author
Sam Brannen
Since
3.1
See Also
#processContextConfiguration(ContextConfigurationAttributes)#detectDefaultConfigurationClasses(Class)#loadBeanDefinitions(GenericApplicationContext, MergedContextConfiguration)GenericXmlContextLoaderGenericGroovyXmlContextLoader
AnnotationConfigContextLoader()
Concrete implementation of AbstractGenericContextLoader that loads bean definitions from annotated classes. See the Javadoc for org.springframework.test.context.ContextConfiguration for a definition of annotated class. Note: |
open fun processContextConfiguration(configAttributes: ContextConfigurationAttributes): Unit
Process annotated classes in the supplied ContextConfigurationAttributes. If the annotated classes are |