public interface ClassPathResourceLoader extends ResourceLoader
Modifier and Type | Method and Description |
---|---|
static ClassPathResourceLoader |
defaultLoader(ClassLoader classLoader)
Return the default
ClassPathResourceLoader for the given class loader. |
ClassLoader |
getClassLoader() |
default boolean |
supportsPrefix(String path) |
forBase, getResource, getResourceAsStream, getResources
ClassLoader getClassLoader()
ClassPathResourceLoader
default boolean supportsPrefix(String path)
supportsPrefix
in interface ResourceLoader
path
- The path to a resource including a prefix
appended by a colon. Ex (classpath:, file:)static ClassPathResourceLoader defaultLoader(@Nullable ClassLoader classLoader)
ClassPathResourceLoader
for the given class loader.classLoader
- The classloader