public interface ClassResourceLoader
Loading resources from the classpath or module path.
When not specified Avaje Jex provides a default implementation that looks to find resources using the class loader associated with the ClassResourceLoader.
As a fallback, ClassLoader.getSystemResourceAsStream(String) is used if the loader returns null.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassResourceLoaderloadResource(String resourcePath) Return the URL for the given resource or return null if it cannot be found.loadResourceAsStream(String resourcePath)
-
Method Details
-
fromClass
-
loadResource
Return the URL for the given resource or return null if it cannot be found. -
loadResourceAsStream
-