public interface AnnotationConfigRegistry
register(java.lang.Class<?>...)
and scan(java.lang.String...)
methods.Modifier and Type | Method and 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.
|
void register(Class<?>... componentClasses)
Calls to register
are idempotent; adding the same
component class more than once has no additional effect.
componentClasses
- one or more component classes,
e.g. @Configuration
classesvoid scan(String... basePackages)
basePackages
- the packages to scan for component classes