Enum Class IsoClassLoader.LoadingStrategy
java.lang.Object
java.lang.Enum<IsoClassLoader.LoadingStrategy>
cloud.opencode.base.classloader.loader.IsoClassLoader.LoadingStrategy
- All Implemented Interfaces:
Serializable, Comparable<IsoClassLoader.LoadingStrategy>, Constable
- Enclosing class:
IsoClassLoader
Class loading strategy
类加载策略
- Since:
- JDK 25, opencode-base-classloader V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChild first (isolation mode) | 子优先(隔离模式)Child only | 仅本加载器Parent first (default JVM behavior) | 父优先(默认 JVM 行为)Parent only | 仅父加载器 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static IsoClassLoader.LoadingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARENT_FIRST
Parent first (default JVM behavior) | 父优先(默认 JVM 行为) -
CHILD_FIRST
Child first (isolation mode) | 子优先(隔离模式) -
PARENT_ONLY
Parent only | 仅父加载器 -
CHILD_ONLY
Child only | 仅本加载器
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-