public final class ResourceLoaders extends Object
| Modifier and Type | Method | Description | 
|---|---|---|
static IterableResourceLoader | 
createFileResourceLoader(String name,
                        File root) | 
 Create a filesystem-backed resource loader with support for native libraries. 
 | 
static ResourceLoader | 
createFileResourceLoader$$bridge(String name,
                                File root) | 
|
static IterableResourceLoader | 
createFilteredResourceLoader(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 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) | 
 Deprecated. 
 
Use  
createFileResourceLoader(String, File) instead. | 
static IterableResourceLoader | 
createIterableFilteredResourceLoader(PathFilter pathFilter,
                                    IterableResourceLoader originalLoader) | 
 Deprecated. 
 
Use  
createFileResourceLoader(String, File) instead. | 
static IterableResourceLoader | 
createIterableJarResourceLoader(String name,
                               JarFile jarFile) | 
 Deprecated. 
 
Use  
createJarResourceLoader(String, JarFile) instead. | 
static IterableResourceLoader | 
createJarResourceLoader(String name,
                       JarFile jarFile) | 
 Create a JAR-backed resource loader. 
 | 
static IterableResourceLoader | 
createJarResourceLoader(String name,
                       JarFile jarFile,
                       String relativePath) | 
 Create a JAR-backed resource loader. 
 | 
static ResourceLoader | 
createJarResourceLoader$$bridge(String name,
                               JarFile jarFile) | 
|
static IterableResourceLoader | 
createPathResourceLoader(String name,
                        Path path) | 
 Create a NIO2 Path-backed iterable resource loader. 
 | 
public static IterableResourceLoader createFileResourceLoader(String name, File root)
file: URL.name - the name of the resource rootroot - the root file of the resource loaderpublic static ResourceLoader createFileResourceLoader$$bridge(String name, File root)
public static IterableResourceLoader createIterableFileResourceLoader(String name, File root)
createFileResourceLoader(String, File) instead.file: URL.name - the name of the resource rootroot - the root file of the resource loaderpublic static IterableResourceLoader createJarResourceLoader(String name, JarFile jarFile)
jar: URL; nested JARs are not supported.name - the name of the resource rootjarFile - the backing JAR filepublic static ResourceLoader createJarResourceLoader$$bridge(String name, JarFile jarFile)
public static IterableResourceLoader createJarResourceLoader(String name, JarFile jarFile, String relativePath)
jar: URL; nested JARs are not supported.  The given
 relative path within the JAR is used as the root of the loader.name - the name of the resource rootjarFile - the backing JAR file@Deprecated public static IterableResourceLoader createIterableJarResourceLoader(String name, JarFile jarFile)
createJarResourceLoader(String, JarFile) instead.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 createFilteredResourceLoader(PathFilter pathFilter, IterableResourceLoader originalLoader)
pathFilter - the path filter to applyoriginalLoader - the original loader to apply topublic static IterableResourceLoader createIterableFilteredResourceLoader(PathFilter pathFilter, IterableResourceLoader originalLoader)
createFileResourceLoader(String, File) instead.pathFilter - the path filter to applyoriginalLoader - the original loader to apply topublic static IterableResourceLoader createPathResourceLoader(String name, Path path)
name - the name of the resource rootpath - the root path of the resource loaderCopyright © 2018 JBoss by Red Hat. All rights reserved.