Add ConfigurationPropertyCaching override support

Add `ConfigurationPropertyCaching.override()` method which can be
used to temporarily enable caching for the duration of an
operation.

The `Binder` now uses this method to ensure that caching is
enabled whilst a set of related binding operations are performed.

Closes gh-44860
This commit is contained in:
Phillip Webb
2025-03-22 19:36:56 -07:00
parent ca9c3ed96d
commit 189d84d49d
6 changed files with 174 additions and 13 deletions

View File

@@ -84,4 +84,5 @@
<suppress files="MyContainers\.java" checks="InterfaceIsType" />
<suppress files="SpringBootBanner\.java" checks="SpringLeadingWhitespace" />
<suppress files="LoadTimeWeaverAwareConsumerContainers\.java" checks="InterfaceIsType" />
<suppress files="ConfigurationPropertyCaching\.java" checks="SpringJavadoc" message="\@since"/>
</suppressions>