Enum Class ClassLoaderUsage

java.lang.Object
java.lang.Enum<ClassLoaderUsage>
de.aristaflow.adept2.model.common.ClassLoaderUsage
All Implemented Interfaces:
Serializable, Comparable<ClassLoaderUsage>, java.lang.constant.Constable

public enum ClassLoaderUsage extends Enum<ClassLoaderUsage>
What classloader to use for the execution of an activity. This may be an own classloader for each execution, a shared classloader for different executions of the same activity, a shared classloader for the correspondung runtime manager and the classloader of the AristaFlow platform. The shared classloader will be relative to a runtime manager on a specific JVM.
Author:
Ulrich Kreher
  • Enum Constant Details

  • Method Details

    • values

      public static ClassLoaderUsage[] 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

      public static ClassLoaderUsage valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public byte getCode()
      Returns a byte code representing this classloader usage. This code is resilient to reordering or renaming the enum constants.
      Returns:
      A byte code representing this classloader usage.
    • valueOf

      public static ClassLoaderUsage valueOf(byte code)
      Returns the classloader usage for the designated code or null if the code is not recognised.
      Parameters:
      code - The code for which to find the classloader usage.
      Returns:
      The classloader usage for the designated code.