Skip to content

Commit

Permalink
Update ServiceMessageSourceFactoryBean.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Apr 22, 2024
1 parent 20dbcee commit 98374ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private List<Locale> resolveSupportedLocales(ConfigurableEnvironment environment
public void onApplicationEvent(ResourceServiceMessageSourceChangedEvent event) {
Iterable<String> changedResources = event.getChangedResources();
logger.debug("Receive event change resource: {}", changedResources);
for (ServiceMessageSource serviceMessageSource : getServiceMessageSources()) {
for (ServiceMessageSource serviceMessageSource : getAllServiceMessageSources()) {
if (serviceMessageSource instanceof ReloadableResourceServiceMessageSource) {
ReloadableResourceServiceMessageSource reloadableResourceServiceMessageSource = (ReloadableResourceServiceMessageSource) serviceMessageSource;
if (reloadableResourceServiceMessageSource.canReload(changedResources)) {
Expand Down

0 comments on commit 98374ff

Please sign in to comment.