| If we add a javax.validation.Validation#clearValidationProviderCache(), would it ever make sense for the application to also call javax.validation.Validation#clearValidationProviderCache(), to clear the cached providers, when they like (perhaps calling it multiple times, while the application is in use)? Or is the application calling clearValidationProviderCache considered (thread) unsafe? My preference is to have a contract via an clearValidationProviderCache method added to the API/SPI. If we cannot have that, perhaps we should add a new static SPI that is called at application undeploy time by the container, so that HV could then perform the equivalent of javax.validation.Validation#clearValidationProviderCache(). Thoughts? |