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
Defines when the lookup in the current thread context
ClassLoader
should be
done according to the other ones.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe class lookup will be done in the thread contextClassLoader
if the former hasn't been found in the otherClassLoader
s.The class lookup will be done in the thread contextClassLoader
prior to the otherClassLoader
s.The current thread contextClassLoader
will never be used during the class lookup. -
Method Summary
Modifier and TypeMethodDescriptionstatic TcclLookupPrecedence
Resolves the precedence from a Map of settings.static TcclLookupPrecedence
from
(Map<?, ?> settings, TcclLookupPrecedence defaultValue) Resolves the precedence from a Map of settingsstatic TcclLookupPrecedence
Returns the enum constant of this class with the specified name.static TcclLookupPrecedence[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
The current thread contextClassLoader
will never be used during the class lookup. -
BEFORE
The class lookup will be done in the thread contextClassLoader
prior to the otherClassLoader
s. -
AFTER
The class lookup will be done in the thread contextClassLoader
if the former hasn't been found in the otherClassLoader
s. This is the default value.
-
-
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
-
from
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
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
-