Interface CacheDataImporter

All Superinterfaces:
org.springframework.beans.factory.config.BeanPostProcessor
All Known Subinterfaces:
CacheDataImporterExporter
All Known Implementing Classes:
AbstractCacheDataImporterExporter, JsonCacheDataImporterExporter, LifecycleAwareCacheDataImporterExporter, ResourceCapableCacheDataImporterExporter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CacheDataImporter extends org.springframework.beans.factory.config.BeanPostProcessor
The CacheDataImporter interface is a FunctionalInterface defininig a contract for importing data into a cache Region.
Since:
1.3.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.geode.cache.Region
    importInto(org.apache.geode.cache.Region region)
    Imports data into the given Region.
    default Object
    Imports data from an external data source into a given Region after initialization.

    Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor

    postProcessBeforeInitialization
  • Method Details

    • postProcessAfterInitialization

      @Nullable default Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Imports data from an external data source into a given Region after initialization.
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Parameters:
      bean - Object bean to evaluate.
      beanName - String containing the name of the bean.
      Throws:
      org.springframework.beans.BeansException - if importing data into a Region fails!
      See Also:
    • importInto

      @NonNull org.apache.geode.cache.Region importInto(@NonNull org.apache.geode.cache.Region region)
      Imports data into the given Region.
      Parameters:
      region - Region to import data into.
      Returns:
      the given Region.
      See Also:
      • Region