Interface ResourceCapableCacheDataImporterExporter.CacheResourceResolver

All Superinterfaces:
ResourceResolver
All Known Subinterfaces:
ResourceCapableCacheDataImporterExporter.ExportResourceResolver, ResourceCapableCacheDataImporterExporter.ImportResourceResolver
All Known Implementing Classes:
ResourceCapableCacheDataImporterExporter.AbstractCacheResourceResolver, ResourceCapableCacheDataImporterExporter.AbstractExportResourceResolver, ResourceCapableCacheDataImporterExporter.AbstractImportResourceResolver, ResourceCapableCacheDataImporterExporter.ClassPathImportResourceResolver, ResourceCapableCacheDataImporterExporter.FileSystemExportResourceResolver
Enclosing class:
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 protected static interface ResourceCapableCacheDataImporterExporter.CacheResourceResolver extends ResourceResolver
ResourceResolver interface extension used to resolve cache Resources.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<org.springframework.core.io.Resource>
    resolve(String location)
    Tries to resolve a Resource handle from the given, non-null location (e.g.
    Optional<org.springframework.core.io.Resource>
    resolve(org.apache.geode.cache.Region<?,?> region)
    Tries to resolve a Resource to a location containing data for the given Region.

    Methods inherited from interface org.springframework.geode.core.io.ResourceResolver

    getClassLoader, require
  • Method Details

    • resolve

      Optional<org.springframework.core.io.Resource> resolve(@NonNull org.apache.geode.cache.Region<?,?> region)
      Tries to resolve a Resource to a location containing data for the given Region. The Region is used to determine the location of the Resource to load.
      Parameters:
      region - Region used to resolve the Resource.
      Returns:
      an Optional Resource handle to a location containing data for the given Region.
      See Also:
    • resolve

      default Optional<org.springframework.core.io.Resource> resolve(@NonNull String location)
      Tries to resolve a Resource handle from the given, non-null location (e.g. filesystem path).
      Specified by:
      resolve in interface ResourceResolver
      Parameters:
      location - location identifying the Resource to resolve; must not be null.
      Returns:
      an Optional Resource handle for the given location.
      See Also: