Class AnnotationConfigWebContextLoader

All Implemented Interfaces:
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: