Interface AnnotationConfigRegistry
- All Known Implementing Classes:
AnnotationConfigApplicationContext,AnnotationConfigWebApplicationContext
public interface AnnotationConfigRegistry
Common interface for annotation config application contexts, definingregister(java.lang.Class<?>...)andscan(java.lang.String...)methods.- Since:
- 4.1
- Author:
- Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregister(Class<?>... annotatedClasses)Register one or more annotated classes to be processed.voidscan(String... basePackages)Perform a scan within the specified base packages.
Method Detail
register
void register(Class<?>... annotatedClasses)
Register one or more annotated classes to be processed.Calls to
registerare idempotent; adding the same annotated class more than once has no additional effect.- Parameters:
annotatedClasses- one or more annotated classes, e.g.@Configurationclasses