public class ResourceLoaders extends Object
ResourceLoader
.Modifier and Type | Method and Description |
---|---|
static ResourceLoader |
forClassLoader(Thread thread)
Creates a ResourceLoader that loads from the given thread's class loader.
|
static ResourceLoader |
forPathAndFallback(List<File> path,
ResourceLoader fallback)
Creates a ResourceLoader that loads from a list of directories and falls back
to another ResourceLoader.
|
static ResourceLoader |
wrap(ClassLoader loader)
Adapts a ClassLoader to work as a ResourceLoader.
|
public static ResourceLoader forClassLoader(Thread thread)
public static ResourceLoader forPathAndFallback(List<File> path, ResourceLoader fallback)
public static ResourceLoader wrap(ClassLoader loader)
ResourceLoader.getClassPath()
.)Copyright © 2018. All rights reserved.