public class CachingConfigurationSelector extends AdviceModeImportSelector<EnableCaching>
AbstractCachingConfiguration
should
be used based on the value of EnableCaching.mode()
on the importing
@Configuration
class.
Detects the presence of JSR-107 and enables JCache support accordingly.
EnableCaching
,
ProxyCachingConfiguration
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
Constructor and Description |
---|
CachingConfigurationSelector() |
Modifier and Type | Method and Description |
---|---|
String[] |
selectImports(AdviceMode adviceMode)
Returns
ProxyCachingConfiguration or AspectJCachingConfiguration
for PROXY and ASPECTJ values of EnableCaching.mode() ,
respectively. |
getAdviceModeAttributeName, selectImports
public String[] selectImports(AdviceMode adviceMode)
ProxyCachingConfiguration
or AspectJCachingConfiguration
for PROXY
and ASPECTJ
values of EnableCaching.mode()
,
respectively. Potentially includes corresponding JCache configuration as well.selectImports
in class AdviceModeImportSelector<EnableCaching>
adviceMode
- the value of the advice mode attribute for the annotation specified via generics.null
if the given AdviceMode
is unknown)