Enum ClassLoaderUsage

  • All Implemented Interfaces:
    Serializable, Comparable<ClassLoaderUsage>

    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
    • Method Detail

      • values

        public static ClassLoaderUsage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClassLoaderUsage c : ClassLoaderUsage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClassLoaderUsage 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
      • 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.