
public final class ResourceLoaders extends Object
| Modifier and Type | Method and Description |
|---|---|
static ResourceLoader |
createFileResourceLoader(String name,
File root)
Create a filesystem-backed resource loader with support for native libraries.
|
static ResourceLoader |
createFilteredResourceLoader(PathFilter pathFilter,
ResourceLoader originalLoader)
Create a filtered view of a resource loader, which allows classes to be included or excluded on a name basis.
|
static IterableResourceLoader |
createIterableFileResourceLoader(String name,
File root)
Create a filesystem-backed iterable resource loader with support for native libraries.
|
static IterableResourceLoader |
createIterableFilteredResourceLoader(PathFilter pathFilter,
IterableResourceLoader originalLoader)
Create a filtered view of an iterable resource loader, which allows classes to be included or excluded on a name basis.
|
static IterableResourceLoader |
createIterableJarResourceLoader(String name,
JarFile jarFile)
Create a JAR-backed iterable resource loader.
|
static ResourceLoader |
createJarResourceLoader(String name,
JarFile jarFile)
Create a JAR-backed resource loader.
|
public static ResourceLoader createFileResourceLoader(String name, File root)
file: URL.name - the name of the resource rootroot - the root file of the resource loaderpublic static IterableResourceLoader createIterableFileResourceLoader(String name, File root)
file: URL.name - the name of the resource rootroot - the root file of the resource loaderpublic static ResourceLoader createJarResourceLoader(String name, JarFile jarFile)
jar: URL; nested JARs are not supported.name - the name of the resource rootjarFile - the backing JAR filepublic static IterableResourceLoader createIterableJarResourceLoader(String name, JarFile jarFile)
jar: URL; nested JARs are not supported.name - the name of the resource rootjarFile - the backing JAR filepublic static ResourceLoader createFilteredResourceLoader(PathFilter pathFilter, ResourceLoader originalLoader)
pathFilter - the path filter to applyoriginalLoader - the original loader to apply topublic static IterableResourceLoader createIterableFilteredResourceLoader(PathFilter pathFilter, IterableResourceLoader originalLoader)
pathFilter - the path filter to applyoriginalLoader - the original loader to apply toCopyright © 2017 JBoss by Red Hat. All rights reserved.