Package org.springframework.boot.io
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
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionresolveFilePath(String location, Resource resource) Return thepathof the given resource if it can also be represented as aFileSystemResource.
-
Method Details
-
resolveFilePath
Return thepathof the given resource if it can also be represented as aFileSystemResource.- Parameters:
location- the location used to create the resourceresource- the resource to check- Returns:
- the file path of the resource or
nullif the it is not possible to represent the resource as aFileSystemResource.
-