接口 ProtocolResolver
-
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface ProtocolResolverCopy from https://github.com/spring-projects/spring-framework.git, with less modifications A resolution strategy for protocol-specific resource handles.Used as an SPI for
DefaultResourceLoader, allowing for custom protocols to be handled without subclassing the loader implementation (or application context implementation).- 从以下版本开始:
- 4.3
- 作者:
- Juergen Hoeller
- 另请参阅:
DefaultResourceLoader.addProtocolResolver(com.alibaba.nacos.common.packagescan.resource.ProtocolResolver)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Resourceresolve(java.lang.String location, ResourceLoader resourceLoader)Resolve the given location against the given resource loader if this implementation's protocol matches.
-
-
-
方法详细资料
-
resolve
Resource resolve(java.lang.String location, ResourceLoader resourceLoader)
Resolve the given location against the given resource loader if this implementation's protocol matches.- 参数:
location- the user-specified resource locationresourceLoader- the associated resource loader- 返回:
- a corresponding
Resourcehandle if the given location matches this resolver's protocol, ornullotherwise
-
-