Interface ResourceLoader
- All Known Implementing Classes:
YamlConfigReader
public interface ResourceLoader
Constructs a new object based on the contents read from some URL.
-
Method Summary
Modifier and TypeMethodDescription<T> Tload(InputStream inputStream, Class<T> clazz) Creates a new instance of T based on the contents read from the specifiedInputStream.<T> TCreates a new instance of T based on the contents retrieved from the specifiedURL.
-
Method Details
-
load
-
load
Creates a new instance of T based on the contents read from the specifiedInputStream.- Parameters:
inputStream-InputStreamclazz- generic class to defined by the supplied configuration- Returns:
- a new Instance of T
-