Enum Isolation

java.lang.Object
java.lang.Enum<Isolation>
ch.obermuhlner.scriptengine.java.Isolation
All Implemented Interfaces:
Serializable, Comparable<Isolation>, java.lang.constant.Constable

public enum Isolation extends Enum<Isolation>
The isolation levels of the script at execution time.
  • Enum Constant Details

    • CallerClassLoader

      public static final Isolation CallerClassLoader
      The caller ClassLoader is visible to the script during execution. This allows to see all classes from the script that are visible in the calling application.
    • IsolatedClassLoader

      public static final Isolation IsolatedClassLoader
      The script executes in an isolated ClassLoader. This hides all classes of the calling application.
  • Constructor Details

    • Isolation

      private Isolation()
  • Method Details

    • values

      public static Isolation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Isolation valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null