-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Make JCachePropertiesCustomizer public #29542
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@mwerlitz thanks for the suggestion. Can you please share the properties you'd like to set? |
I wanted to set a custom property to be able to use dynamically configured values from But it turns out the documentation of Looks like I need a feature request for EhCache first to also consider values from As a workaround I will now extract my properties from application context and convert them to system properties just before |
It sounds like that's the best approach for now. If the EhCache enhancement gets implemented and we need to offer more customization options please comment back here. |
Uh oh!
There was an error while loading. Please reload this page.
Please make
org.springframework.boot.autoconfigure.cache.JCachePropertiesCustomizer
public, so the properties that are used to initialize theCacheManager
can be customized by an application.I would like to use the property replacement feature of EhCache in the configuration XML file.
At the moment this is not possible because the properties supplied when creating the
CacheManager
inJCacheCacheConfiguration#createCacheManager
are empty and there seems to be no way to supply additional properties.The code in
JCacheCacheConfiguration#createCacheManagerProperties
is supposed to create these properties with the help ofJCachePropertiesCustomizer
instances. ButJCachePropertiesCustomizer
is not public so one has no possibility to supply additional props that may be used in the XML config file.The text was updated successfully, but these errors were encountered: