public final class ResourceLoaders
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static IterableResourceLoader |
createFileResourceLoader(java.lang.String name,
java.io.File root) |
Deprecated.
Use
createPathResourceLoader(Path) instead. |
static ResourceLoader |
createFileResourceLoader$$bridge(java.lang.String name,
java.io.File root) |
Deprecated.
|
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(java.lang.String name,
java.io.File root) |
Deprecated.
Use
createFileResourceLoader(String, File) instead. |
static IterableResourceLoader |
createIterableFilteredResourceLoader(PathFilter pathFilter,
IterableResourceLoader originalLoader) |
Deprecated.
Use
createFileResourceLoader(String, File) instead. |
static IterableResourceLoader |
createIterableJarResourceLoader(java.lang.String name,
java.util.jar.JarFile jarFile) |
Deprecated.
Use
createJarResourceLoader(JarFile) instead. |
static IterableResourceLoader |
createJarResourceLoader(java.lang.String name,
java.util.jar.JarFile jarFile) |
Deprecated.
Use
createJarResourceLoader(JarFile) instead. |
static IterableResourceLoader |
createJarResourceLoader(java.lang.String name,
java.util.jar.JarFile jarFile,
java.lang.String relativePath) |
Deprecated.
Use
createJarResourceLoader(JarFile, String) instead. |
static IterableResourceLoader |
createJarResourceLoader(java.util.jar.JarFile jarFile) |
Create a JAR-backed resource loader.
|
static IterableResourceLoader |
createJarResourceLoader(java.util.jar.JarFile jarFile,
java.lang.String relativePath) |
Create a JAR-backed resource loader.
|
static ResourceLoader |
createJarResourceLoader$$bridge(java.lang.String name,
java.util.jar.JarFile jarFile) |
Deprecated.
|
static IterableResourceLoader |
createPathResourceLoader(java.lang.String name,
java.nio.file.Path path) |
Deprecated.
Use
createPathResourceLoader(Path) instead. |
static IterableResourceLoader |
createPathResourceLoader(java.nio.file.Path path) |
Create a NIO2 Path-backed iterable resource loader.
|
static ResourceLoader |
createServiceResourceLoader(java.util.Map<java.lang.String,java.util.List<java.lang.String>> serviceMap) |
Create a service resource loader.
|
@Deprecated public static IterableResourceLoader createFileResourceLoader(java.lang.String name, java.io.File root)
createPathResourceLoader(Path)
instead.file:
URL.name
- the name of the resource rootroot
- the root file of the resource loader@Deprecated public static ResourceLoader createFileResourceLoader$$bridge(java.lang.String name, java.io.File root)
@Deprecated public static IterableResourceLoader createIterableFileResourceLoader(java.lang.String name, java.io.File root)
createFileResourceLoader(String, File)
instead.file:
URL.name
- the name of the resource rootroot
- the root file of the resource loader@Deprecated public static IterableResourceLoader createJarResourceLoader(java.lang.String name, java.util.jar.JarFile jarFile)
createJarResourceLoader(JarFile)
instead.jar:
URL; nested JARs are not supported.name
- the name of the resource rootjarFile
- the backing JAR filepublic static IterableResourceLoader createJarResourceLoader(java.util.jar.JarFile jarFile)
jar:
URL; nested JARs are not supported.jarFile
- the backing JAR file@Deprecated public static ResourceLoader createJarResourceLoader$$bridge(java.lang.String name, java.util.jar.JarFile jarFile)
public static IterableResourceLoader createJarResourceLoader(java.lang.String name, java.util.jar.JarFile jarFile, java.lang.String relativePath)
createJarResourceLoader(JarFile, String)
instead.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 filepublic static IterableResourceLoader createJarResourceLoader(java.util.jar.JarFile jarFile, java.lang.String relativePath)
jar:
URL; nested JARs are not supported. The given
relative path within the JAR is used as the root of the loader.jarFile
- the backing JAR file@Deprecated public static IterableResourceLoader createIterableJarResourceLoader(java.lang.String name, java.util.jar.JarFile jarFile)
createJarResourceLoader(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 to@Deprecated public static IterableResourceLoader createPathResourceLoader(java.lang.String name, java.nio.file.Path path)
createPathResourceLoader(Path)
instead.name
- the name of the resource rootpath
- the root path of the resource loaderpublic static IterableResourceLoader createPathResourceLoader(java.nio.file.Path path)
path
- the root path of the resource loaderpublic static ResourceLoader createServiceResourceLoader(java.util.Map<java.lang.String,java.util.List<java.lang.String>> serviceMap)
serviceMap
- a map of service types to a list of implementation names (must not be null
)null
)Copyright © 2022 JBoss by Red Hat. All rights reserved.