@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(cn.sexycode.util.core.io.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 © 2020. All rights reserved.