Skip to content

Commit

Permalink
Update messageSource approach
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Sep 10, 2024
1 parent 8016143 commit f9acc10
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,14 @@ public void setCodecs(List<Codec<?>> codecs) {
/**
* The message source used for validation messages
*
* @param messageSource The message sources
* @param messageSource The message source
*/
@Autowired(required = false)
public void setMessageSource(PluginAwareResourceBundleMessageSource messageSource) {
setMessageSource((MessageSource) messageSource);
}

public void setMessageSource(MessageSource messageSource) {
if(messageSource != null) {
configureValidatorRegistry(connectionSources.getDefaultConnectionSource().getSettings(), (MongoMappingContext) mappingContext, messageSource);
}
Expand Down

0 comments on commit f9acc10

Please sign in to comment.