Class AnnotationConfigwebContextLoader

All Implemented Interfaces:
AotContextLoader, ContextLoader, SmartContextLoader

public class AnnotationConfigwebContextLoader extends AbstractGenericwebContextLoader
Concrete implementation of AbstractGenericwebContextLoader that loads bean definitions from annotated classes.

See the Javadoc for @ContextConfiguration for a definition of annotated class.

Note: AnnotationConfigwebContextLoader supports annotated classes rather than the String-based resource locations defined by the legacy ContextLoader API. Thus, although AnnotationConfigwebContextLoader extends AbstractGenericwebContextLoader, AnnotationConfigwebContextLoader does not support any String-based methods defined by AbstractContextLoader or AbstractGenericwebContextLoader. Consequently, AnnotationConfigwebContextLoader should chiefly be considered a SmartContextLoader rather than a ContextLoader.

Since:
3.2
Author:
Sam Brannen
See Also: