abstract class AdviceModeImportSelector<A : Annotation> : ImportSelector
Convenient base class for ImportSelector implementations that select imports based on an AdviceMode value from an annotation (such as the @Enable*
annotations).
- annotation containing AdviceMode attribute
Author
Chris Beams
Since
3.1
AdviceModeImportSelector()
Convenient base class for ImportSelector implementations that select imports based on an AdviceMode value from an annotation (such as the |
static val DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME: String |
fun selectImports(importingClassMetadata: AnnotationMetadata): Array<String>
This implementation resolves the type of annotation from generic metadata and validates that (a) the annotation is in fact present on the importing The |
open class CachingConfigurationSelector : AdviceModeImportSelector<EnableCaching>
Selects which implementation of AbstractCachingConfiguration should be used based on the value of Detects the presence of JSR-107 and enables JCache support accordingly. |