Class NestedJarHandler.Builder

java.lang.Object
cloud.opencode.base.classloader.resource.NestedJarHandler.Builder
Enclosing class:
NestedJarHandler

public static final class NestedJarHandler.Builder extends Object
Builder for NestedJarHandler NestedJarHandler 的构建器
Since:
JDK 25, opencode-base-classloader V1.0.3
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • tempDirectory

      public NestedJarHandler.Builder tempDirectory(Path tempDirectory)
      Set the temporary directory for extracted JARs 设置解压 JAR 的临时目录
      Parameters:
      tempDirectory - temporary directory path | 临时目录路径
      Returns:
      this builder | 此构建器
    • build

      public NestedJarHandler build()
      Build the handler 构建处理器
      Returns:
      new NestedJarHandler instance | 新的 NestedJarHandler 实例
      Throws:
      OpenClassLoaderException - if temp directory creation fails | 临时目录创建失败时抛出