spring-geode/src/main/java/org/springframework/geode/context/annotation/RefreshableAnnotationConfigApplicationContext.java
/**
	 * Re-registers Singleton beans registered with the previous {@link ConfigurableListableBeanFactory BeanFactory}
	 * (prior to refresh) with this {@link ApplicationContext}, iff this context was previously active
	 * and subsequently refreshed.
	 *
	 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#copyConfigurationFrom(ConfigurableBeanFactory)
	 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#registerSingleton(String, Object)
	 * @see #getBeanFactory()
	 */
Re-registers Singleton beans registered with the previous  ConfigurableListableBeanFactory BeanFactory
(prior to refresh) with this  ApplicationContext, iff this context was previously active
and subsequently refreshed.


Re - registers Singleton beans registered with the previous ConfigurableListableBeanFactory BeanFactory ( prior to refresh ) with this ApplicationContext iff this context was previously active and subsequently refreshed .
@Override
	protected void onRefresh() {
		super.onRefresh();
		ConfigurableListableBeanFactory currentBeanFactory = getBeanFactory();
		if (this.beanFactory != null) {
			Arrays.stream(ArrayUtils.nullSafeArray(this.beanFactory.getSingletonNames(), String.class))
				.filter(singletonBeanName -> !currentBeanFactory.containsSingleton(singletonBeanName))
				.forEach(singletonBeanName -> currentBeanFactory
					.registerSingleton(singletonBeanName, this.beanFactory.getSingleton(singletonBeanName)));
			if (isCopyConfigurationEnabled()) {
				currentBeanFactory.copyConfigurationFrom(this.beanFactory);
			}
		}
	}
@ Override protected void onRefresh ( ) { super . onRefresh ( ) ; ConfigurableListableBeanFactory currentBeanFactory = getBeanFactory ( ) ; if ( this . beanFactory != null ) { Arrays . stream ( ArrayUtils . nullSafeArray ( this . beanFactory . getSingletonNames ( ) , String . class ) ) . filter ( singletonBeanName -> ! currentBeanFactory . containsSingleton ( singletonBeanName ) ) . forEach ( singletonBeanName -> currentBeanFactory . registerSingleton ( singletonBeanName , this . beanFactory . getSingleton ( singletonBeanName ) ) ) ; if ( isCopyConfigurationEnabled ( ) ) { currentBeanFactory . copyConfigurationFrom ( this . beanFactory ) ; } } }
Re-registers Singleton beans registered with the previous {@link ConfigurableListableBeanFactory BeanFactory}
 (prior to refresh) with this {@link ApplicationContext}, iff this context was previously active
 and subsequently refreshed.
Re - registers Singleton beans registered with the previous { @link ConfigurableListableBeanFactory BeanFactory } ( prior to refresh ) with this { @link ApplicationContext } iff this context was previously active and subsequently refreshed .