Enum Class TcclLookupPrecedence

java.lang.Object
java.lang.Enum<TcclLookupPrecedence>
org.hibernate.boot.registry.classloading.internal.TcclLookupPrecedence
All Implemented Interfaces:
Serializable, Comparable<TcclLookupPrecedence>, java.lang.constant.Constable

public enum TcclLookupPrecedence extends Enum<TcclLookupPrecedence>
Defines when the lookup in the current thread context ClassLoader should be done according to the other ones.
  • Enum Constant Details

    • NEVER

      public static final TcclLookupPrecedence NEVER
      The current thread context ClassLoader will never be used during the class lookup.
    • BEFORE

      public static final TcclLookupPrecedence BEFORE
      The class lookup will be done in the thread context ClassLoader prior to the other ClassLoaders.
    • AFTER

      public static final TcclLookupPrecedence AFTER
      The class lookup will be done in the thread context ClassLoader if the former hasn't been found in the other ClassLoaders. This is the default value.
  • Method Details

    • values

      public static TcclLookupPrecedence[] 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 TcclLookupPrecedence 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
    • from

      public static TcclLookupPrecedence from(Map<?,?> settings)
      Resolves the precedence from a Map of settings.
      Returns:
      The precedence, or null if none was specified.
      Throws:
      IllegalArgumentException - If there is a setting defined for precedence, but it is not a legal value
    • from

      public static TcclLookupPrecedence from(Map<?,?> settings, TcclLookupPrecedence defaultValue)
      Resolves the precedence from a Map of settings
      Returns:
      The precedence, or defaultValue if none was specified.
      Throws:
      IllegalArgumentException - If there is a setting defined for precedence, but it is not a legal value