File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public RefreshEventListener refreshEventListener(ContextRefresher contextRefresh
130130 return new RefreshEventListener (contextRefresher );
131131 }
132132
133- @ ConfigurationProperties ("spring.cloud.refresh" )
133+ @ ConfigurationProperties (REFRESH_SCOPE_PREFIX )
134134 public static class RefreshProperties {
135135
136136 /**
@@ -219,7 +219,7 @@ public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) t
219219 if (isApplicable (registry , name , definition )) {
220220 BeanDefinitionHolder holder = new BeanDefinitionHolder (definition , name );
221221 BeanDefinitionHolder proxy = ScopedProxyUtils .createScopedProxy (holder , registry , true );
222- definition .setScope ("refresh" );
222+ definition .setScope (REFRESH_SCOPE_NAME );
223223 if (registry .containsBeanDefinition (proxy .getBeanName ())) {
224224 registry .removeBeanDefinition (proxy .getBeanName ());
225225 }
@@ -252,7 +252,7 @@ private void bindEnvironmentIfNeeded(BeanDefinitionRegistry registry) {
252252 if (this .environment == null ) {
253253 this .environment = new StandardEnvironment ();
254254 }
255- Binder .get (this .environment ).bind ("spring.cloud.refresh" , Bindable .ofInstance (this ));
255+ Binder .get (this .environment ).bind (REFRESH_SCOPE_PREFIX , Bindable .ofInstance (this ));
256256 this .bound = true ;
257257 }
258258 }
You can’t perform that action at this time.
0 commit comments