Interface ApplicationResourceLoader.FilePathResolver

Enclosing class:
ApplicationResourceLoader

public static interface ApplicationResourceLoader.FilePathResolver
Strategy interface registered in spring.factories and used by ApplicationResourceLoader to determine the file path of loaded resource when it can also be represented as a FileSystemResource.
Since:
3.4.5
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveFilePath(String location, org.springframework.core.io.Resource resource)
    Return the path of the given resource if it can also be represented as a FileSystemResource.
  • Method Details

    • resolveFilePath

      String resolveFilePath(String location, org.springframework.core.io.Resource resource)
      Return the path of the given resource if it can also be represented as a FileSystemResource.
      Parameters:
      location - the location used to create the resource
      resource - the resource to check
      Returns:
      the file path of the resource or null if the it is not possible to represent the resource as a FileSystemResource.