spring-geode/src/main/java/org/springframework/geode/data/CacheDataExporter.java
/**
	 * Exports any data contained in a {@link Region} on destruction.
	 *
	 * @param bean {@link Object} bean to evaluate.
	 * @param beanName {@link String} containing the name of the bean.
	 * @throws BeansException if exporting data from a {@link Region} fails!
	 * @see org.apache.geode.cache.Region
	 * @see #exportFrom(Region)
	 */
Exports any data contained in a  Region on destruction.
@param bean  Object bean to evaluate.
@param beanName  String containing the name of the bean.
@throws BeansException if exporting data from a  Region fails.
Exports any data contained in a Region on destruction . @param bean Object bean to evaluate . @param beanName String containing the name of the bean . @throws BeansException if exporting data from a Region fails .
@Override
	default void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
		if (bean instanceof Region) {
			exportFrom((Region) bean);
		}
		else if (bean instanceof ResolvableRegionFactoryBean) {
			exportFrom(((ResolvableRegionFactoryBean) bean).getRegion());
		}
	}
@ Override default void postProcessBeforeDestruction ( Object bean , String beanName ) throws BeansException { if ( bean instanceof Region ) { exportFrom ( ( Region ) bean ) ; } else if ( bean instanceof ResolvableRegionFactoryBean ) { exportFrom ( ( ( ResolvableRegionFactoryBean ) bean ) . getRegion ( ) ) ; } }
Exports any data contained in a {@link Region} on destruction.
Exports any data contained in a { @link Region } on destruction .