@FunctionalInterface public interface ProtocolResolver
Used as an SPI for DefaultResourceLoader, allowing for
custom protocols to be handled without subclassing the loader
implementation (or application context implementation).
DefaultResourceLoader.addProtocolResolver(com.alibaba.nacos.common.packagescan.resource.ProtocolResolver)Resource resolve(String location, ResourceLoader resourceLoader)
location - the user-specified resource locationresourceLoader - the associated resource loaderResource handle if the given location
matches this resolver's protocol, or null otherwiseCopyright © 2018–2024 Alibaba Group. All rights reserved.