From 3a582dc603750d58fe4bb2af226d000ea7e58655 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 27 Oct 2022 11:51:04 -0400 Subject: [PATCH] Adds rebind/refresh an individual bean by type Fixes gh-1162 --- .../context/properties/ConfigurationPropertiesRebinder.java | 3 ++- .../cloud/context/scope/refresh/RefreshScope.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java index 34341125..9db8ac3b 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java @@ -104,7 +104,8 @@ public class ConfigurationPropertiesRebinder } /** - * WARNING: This method rebinds beans from any context in the hierarchy using the main application context. + * WARNING: This method rebinds beans from any context in the hierarchy using the main + * application context. * @param type bean type to rebind. * @return true, if successful. */ diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/refresh/RefreshScope.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/refresh/RefreshScope.java index 7a51eca1..b08dfa0f 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/refresh/RefreshScope.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/refresh/RefreshScope.java @@ -132,7 +132,8 @@ public class RefreshScope extends GenericScope } /** - * WARNING: This method refreshes beans from any context in the hierarchy using the main application context. + * WARNING: This method refreshes beans from any context in the hierarchy using the + * main application context. * @param type bean type to rebind. * @return true, if successful. */