A- annotation containing AdviceMode attribute
public abstract class AdviceModeImportSelector<A extends Annotation> extends Object implements ImportSelector
ImportSelectorimplementations that select imports based on an
AdviceModevalue from an annotation (such as the
|Modifier and Type||Field and Description|
The default advice mode attribute name.
|Constructor and Description|
|Modifier and Type||Method and Description|
The name of the
Determine which classes should be imported based on the given
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected String getAdviceModeAttributeName()
public final String selectImports(AnnotationMetadata importingClassMetadata)
@Configurationclass and (b) that the given annotation has an advice mode attribute of type
selectImports(AdviceMode) method is then invoked, allowing the
concrete implementation to choose imports in a safe and convenient fashion.
@Nullable protected abstract String selectImports(AdviceMode adviceMode)
null from this method indicates that the
could not be handled or was unknown and that an
should be thrown.
adviceMode- the value of the advice mode attribute for the annotation specified via generics.
nullif the given