public final class ResourceLoaders extends Object
@Deprecated public static IterableResourceLoader createFileResourceLoader(String name, 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(String name, File root)
@Deprecated 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 loader@Deprecated public static IterableResourceLoader createJarResourceLoader(String name, 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(JarFile jarFile)
jar:
URL; nested JARs are not supported.jarFile
- the backing JAR file@Deprecated public static ResourceLoader createJarResourceLoader$$bridge(String name, JarFile jarFile)
public static IterableResourceLoader createJarResourceLoader(String name, JarFile jarFile, 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(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.jarFile
- the backing JAR file@Deprecated public static IterableResourceLoader createIterableJarResourceLoader(String name, 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(String name, Path path)
createPathResourceLoader(Path)
instead.name
- the name of the resource rootpath
- the root path of the resource loaderpublic static IterableResourceLoader createPathResourceLoader(Path path)
path
- the root path of the resource loaderpublic static ResourceLoader createServiceResourceLoader(Map<String,List<String>> serviceMap)
serviceMap
- a map of service types to a list of implementation names (must not be null
)null
)Copyright © 2018 JBoss by Red Hat. All rights reserved.