All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.utils.io.ProtocolResolver Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.utils.io;

/**
 * A resolution strategy for protocol-specific resource handles.
 *
 * 

Used as an SPI for {@link DefaultResourceLoader}, allowing for * custom protocols to be handled without subclassing the loader * implementation (or application context implementation). * * @see DefaultResourceLoader#addProtocolResolver */ public interface ProtocolResolver { /** * Resolve the given location against the given resource loader * if this implementation's protocol matches. * @param location the user-specified resource location * @param resourceLoader the associated resource loader * @return a corresponding {@code Resource} handle if the given location * matches this resolver's protocol, or {@code null} otherwise */ Resource resolve(String location, ResourceLoader resourceLoader); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy