ImportSelector implementations that select imports
based on an AdviceMode value from an annotation (such as the @Enable*
annotations).
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
The default advice mode attribute name. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | getAdviceModeAttributeName()
The name of the |
| public final String[] | selectImports(AnnotationMetadata importingClassMetadata)
Implements org. @Configuration class and (b) that the given annotation has an
advice mode attribute of type
AdviceMode.
|
| protected abstract String[] | Returns: array containing classes to import (empty array if none;null if the given AdviceMode is unknown)the value of the advice mode attribute for the annotation specified via generics. adviceMode)Determine which classes should be imported based on the given |
| DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME The default advice mode attribute name. | |
| AdviceModeImportSelector | back to summary |
|---|---|
| public AdviceModeImportSelector() | |
| getAdviceModeAttributeName | back to summary |
|---|---|
| protected String getAdviceModeAttributeName() The name of the | |
| selectImports | back to summary |
|---|---|
| public final String[] selectImports(AnnotationMetadata importingClassMetadata) Implements org. This implementation resolves the type of annotation from generic metadata and
validates that (a) the annotation is in fact present on the importing
The
| |
| selectImports | back to summary |
|---|---|
| protected abstract String[] selectImports(AdviceMode adviceMode) Determine which classes should be imported based on the given Returning
| |