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 void
register(Class<?>... componentClasses)
Register one or more component classes to be processed.void
scan(String... basePackages)
Perform a scan within the specified base packages.
Method Detail
register
void register(Class<?>... componentClasses)
Register one or more component classes to be processed.Calls to
register
are idempotent; adding the same component class more than once has no additional effect.- Parameters:
componentClasses
- one or more component classes, e.g.@Configuration
classes