Spring Boot for VMware GemFire
Class ResourceCapableCacheDataImporterExporter.AbstractImportResourceResolver
java.lang.Object
org.springframework.geode.core.io.support.ResourceLoaderResourceResolver
org.springframework.geode.data.support.ResourceCapableCacheDataImporterExporter.AbstractCacheResourceResolver
org.springframework.geode.data.support.ResourceCapableCacheDataImporterExporter.AbstractImportResourceResolver
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware,org.springframework.context.ResourceLoaderAware,ResourceResolver,ResourceCapableCacheDataImporterExporter.CacheResourceResolver,ResourceCapableCacheDataImporterExporter.ImportResourceResolver
- Direct Known Subclasses:
ResourceCapableCacheDataImporterExporter.ClassPathImportResourceResolver
- Enclosing class:
- ResourceCapableCacheDataImporterExporter
public abstract static class ResourceCapableCacheDataImporterExporter.AbstractImportResourceResolver
extends ResourceCapableCacheDataImporterExporter.AbstractCacheResourceResolver
implements ResourceCapableCacheDataImporterExporter.ImportResourceResolver
Abstract base class extended by import
ResourceResolver implementations, providing a template
to resolve the Resource to import.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.io.ResourceonMissingResource(org.springframework.core.io.Resource resource, String location) Optional<org.springframework.core.io.Resource>resolve(org.apache.geode.cache.Region<?, ?> region) Methods inherited from class org.springframework.geode.data.support.ResourceCapableCacheDataImporterExporter.AbstractCacheResourceResolver
evaluate, getApplicationContext, getEnvironment, getExpressionParser, getFullyQualifiedResourceLocation, getLogger, getParserContext, getResourceLocation, getResourceName, getResourceName, getResourcePath, isQualified, newEvaluationContext, parse, setApplicationContext, setEnvironmentMethods inherited from class org.springframework.geode.core.io.support.ResourceLoaderResourceResolver
getClassLoader, getResourceLoader, newResource, newResourceLoader, postProcess, resolve, setResourceLoaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.geode.data.support.ResourceCapableCacheDataImporterExporter.CacheResourceResolver
resolveMethods inherited from interface org.springframework.geode.core.io.ResourceResolver
getClassLoader, require
-
Constructor Details
-
AbstractImportResourceResolver
public AbstractImportResourceResolver()
-
-
Method Details
-
resolve
public Optional<org.springframework.core.io.Resource> resolve(@NonNull org.apache.geode.cache.Region<?, ?> region) Tries to resolve aResourceto alocationcontaining data for the givenRegion. TheRegionis used to determine thelocationof theResourceto load.- Specified by:
resolvein interfaceResourceCapableCacheDataImporterExporter.CacheResourceResolver- Parameters:
region-Regionused to resolve theResource.- Returns:
- an
OptionalResourcehandle to alocationcontaining data for the givenRegion. - See Also:
-
ResourceRegionOptional
-
onMissingResource
@Nullable protected org.springframework.core.io.Resource onMissingResource(@Nullable org.springframework.core.io.Resource resource, @NonNull String location) Description copied from class:ResourceLoaderResourceResolverAction to perform when theResourceidentified at the specifiedlocationis missing, or was notqualified.- Overrides:
onMissingResourcein classResourceLoaderResourceResolver- Parameters:
resource- missingResource.location-Stringcontaining the location identifying the missingResource.- Returns:
- a different
Resource, possibly. Alternatively, this method may throw aResourceNotFoundException. - See Also:
-