接口 ClassResourceLoader
-
- 所有超级接口:
ResourceLoader
- 所有已知实现类:
ClassResourceLoaders
@ProhibitBean(ONLY_CURRENT) public interface ClassResourceLoader extends ResourceLoader
Used in found class byte code.
-
-
方法概要
修饰符和类型 方法 说明 default InputStreamfound(String path, ClassLoader loader)Find the resource with path.byte[]found(String className, ClassLoader loader, IBeanManager bm)default InputStreamfound0(String path, ClassLoader loader)This is for lambda.
-
-
-
方法详细资料
-
found
@Nullable @Contract(pure=true) byte[] found(@NotNull String className, @Nullable ClassLoader loader, @NotNull IBeanManager bm)
-
found0
@Nullable default InputStream found0(@NotNull String path, @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoaderThis is for lambda.If you are calling
ResourceLoader.found(String, ClassLoader)directly, please do thispublic InputStream found0(@NotNull String path, @Nullable ClassLoader loader){return null;}Do not call
ResourceLoader.found(String, ClassLoader)in this method. Otherwise it will lead to an infinite loopUse found if it is used externally, do not call this method.
ResourceLoader loader = ....; // loader.found0(......); InputStream res = loader.found("META-INF/MANIFEST.MF", ClassLoader.getSystemClassLoader());Call specification: Never use
ResourceLoader.found0(String, ClassLoader)- 指定者:
found0在接口中ResourceLoader- 参数:
path- The path of need found.loader- The class loader using- 返回:
- The resource
- 另请参阅:
ResourceLoader.found(String, ClassLoader)
-
found
@Nullable default InputStream found(@NotNull String path, @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoaderFind the resource with path.Call specification: Never use
ResourceLoader.found0(String, ClassLoader)- 指定者:
found在接口中ResourceLoader- 参数:
path- The resource path.loader- ResourceLoader?- 返回:
- The resource founded.
-
-