-
- 所有超级接口:
ResourceLoader
- 所有已知实现类:
ClassResourceLoaders
@ProhibitBean(ONLY_CURRENT) public interface ClassResourceLoader extends ResourceLoader
Used in found class byte code.
-
-
方法概要
修饰符和类型 方法 说明 default @Nullable InputStream
found(@NotNull String path, @Nullable ClassLoader loader)
Find the resource with path.@org.jetbrains.annotations.Nullable byte[]
found(@NotNull String className, @Nullable ClassLoader loader, @NotNull IBeanManager bm)
default @Nullable InputStream
found0(@NotNull String path, @Nullable ClassLoader loader)
This is for lambda.
-
-
-
方法详细资料
-
found
@Nullable @Contract(pure=true) @org.jetbrains.annotations.Nullable byte[] found(@NotNull @NotNull String className, @Nullable @Nullable ClassLoader loader, @NotNull @NotNull IBeanManager bm)
-
found0
@Nullable default @Nullable InputStream found0(@NotNull @NotNull String path, @Nullable @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoader
This 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 @Nullable InputStream found(@NotNull @NotNull String path, @Nullable @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoader
Find the resource with path.Call specification: Never use
ResourceLoader.found0(String, ClassLoader)
- 指定者:
found
在接口中ResourceLoader
- 参数:
path
- The resource path.loader
- ResourceLoader?- 返回:
- The resource founded.
-
-