Enum Class TcclLookupPrecedence
java.lang.Object
java.lang.Enum<TcclLookupPrecedence>
org.hibernate.boot.registry.classloading.internal.TcclLookupPrecedence
- All Implemented Interfaces:
Serializable,Comparable<TcclLookupPrecedence>,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 contextClassLoaderif the former hasn't been found in the otherClassLoaders.The class lookup will be done in the thread contextClassLoaderprior to the otherClassLoaders.The current thread contextClassLoaderwill never be used during the class lookup. -
Method Summary
Modifier and TypeMethodDescriptionstatic TcclLookupPrecedenceResolves the precedence from a Map of settings.static TcclLookupPrecedencefrom(Map<?, ?> settings, TcclLookupPrecedence defaultValue) Resolves the precedence from a Map of settingsstatic TcclLookupPrecedenceReturns 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 contextClassLoaderwill never be used during the class lookup. -
BEFORE
The class lookup will be done in the thread contextClassLoaderprior to the otherClassLoaders. -
AFTER
The class lookup will be done in the thread contextClassLoaderif the former hasn't been found in the otherClassLoaders. 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
nullif 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
defaultValueif none was specified. - Throws:
IllegalArgumentException- If there is a setting defined for precedence, but it is not a legal value
-