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
130
130
return new RefreshEventListener (contextRefresher );
131
131
}
132
132
133
- @ ConfigurationProperties ("spring.cloud.refresh" )
133
+ @ ConfigurationProperties (REFRESH_SCOPE_PREFIX )
134
134
public static class RefreshProperties {
135
135
136
136
/**
@@ -219,7 +219,7 @@ public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) t
219
219
if (isApplicable (registry , name , definition )) {
220
220
BeanDefinitionHolder holder = new BeanDefinitionHolder (definition , name );
221
221
BeanDefinitionHolder proxy = ScopedProxyUtils .createScopedProxy (holder , registry , true );
222
- definition .setScope ("refresh" );
222
+ definition .setScope (REFRESH_SCOPE_NAME );
223
223
if (registry .containsBeanDefinition (proxy .getBeanName ())) {
224
224
registry .removeBeanDefinition (proxy .getBeanName ());
225
225
}
@@ -252,7 +252,7 @@ private void bindEnvironmentIfNeeded(BeanDefinitionRegistry registry) {
252
252
if (this .environment == null ) {
253
253
this .environment = new StandardEnvironment ();
254
254
}
255
- Binder .get (this .environment ).bind ("spring.cloud.refresh" , Bindable .ofInstance (this ));
255
+ Binder .get (this .environment ).bind (REFRESH_SCOPE_PREFIX , Bindable .ofInstance (this ));
256
256
this .bound = true ;
257
257
}
258
258
}
You can’t perform that action at this time.
0 commit comments