@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Import(value=DingerScannerRegistrar.class) public @interface DingerScan
| 限定符和类型 | 可选元素和说明 |
|---|---|
Class<? extends Annotation> |
annotationClass
This property specifies the annotation that the scanner will search for.
|
String[] |
basePackages
Base packages to scan for Dinger interfaces.
|
Class<?> |
markerInterface
This property specifies the parent that the scanner will search for.
|
Class<? extends org.springframework.beans.factory.support.BeanNameGenerator> |
nameGenerator
The
BeanNameGenerator class to be used for naming detected components
within the Spring container. |
String[] |
value
Alias for the
basePackages() attribute. |
public abstract String[] value
basePackages() attribute. Allows for more concise
annotation declarations e.g.:
@DingerScan("org.my.pkg") instead of @DingerScan(basePackages = "org.my.pkg")}.public abstract String[] basePackages
public abstract Class<? extends org.springframework.beans.factory.support.BeanNameGenerator> nameGenerator
BeanNameGenerator class to be used for naming detected components
within the Spring container.BeanNameGeneratorpublic abstract Class<? extends Annotation> annotationClass
The scanner will register all interfaces in the base package that also have the specified annotation.
Note this can be combined with markerInterface.
public abstract Class<?> markerInterface
The scanner will register all interfaces in the base package that also have the specified interface class as a parent.
Note this can be combined with annotationClass.
Copyright © 2023 AnswerAIL. All rights reserved.