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
-
Method Summary
Modifier and TypeMethodDescriptionresolveFilePath
(String location, org.springframework.core.io.Resource resource) Return thepath
of the given resource if it can also be represented as aFileSystemResource
.
-
Method Details
-
resolveFilePath
Return thepath
of 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
null
if the it is not possible to represent the resource as aFileSystemResource
.
-