Adapt to API changes in Spring Data for Apache Geode.

Replace use of SDG SpringUtils with SBDG's SpringExtensions, which now extends org.springframework.data.gemfire.util.SpringExtensions (renamed from o.s.d.g.util.SpringUtils).
This commit is contained in:
John Blum
2022-04-12 17:06:43 -07:00
parent 6c6aa354ec
commit 54572fcb4c
3 changed files with 9 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ import org.springframework.context.annotation.ScopeMetadataResolver;
import org.springframework.context.support.AbstractRefreshableConfigApplicationContext;
import org.springframework.data.gemfire.config.annotation.PeerCacheApplication;
import org.springframework.data.gemfire.util.ArrayUtils;
import org.springframework.data.gemfire.util.SpringUtils;
import org.springframework.geode.core.util.SpringExtensions;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import org.springframework.util.ClassUtils;
@@ -314,7 +314,7 @@ public class RefreshableAnnotationConfigApplicationContext extends AbstractRefre
*/
@Override
protected void prepareRefresh() {
this.beanFactory = (DefaultListableBeanFactory) SpringUtils.safeGetValue(this::getBeanFactory);
this.beanFactory = (DefaultListableBeanFactory) SpringExtensions.safeGetValue(this::getBeanFactory);
super.prepareRefresh();
}