Enum TcclLookupPrecedence
- java.lang.Object
-
- java.lang.Enum<TcclLookupPrecedence>
-
- org.hibernate.boot.registry.classloading.internal.TcclLookupPrecedence
-
- All Implemented Interfaces:
Serializable
,Comparable<TcclLookupPrecedence>
public enum TcclLookupPrecedence extends Enum<TcclLookupPrecedence>
Defines when the lookup in the current thread contextClassLoader
should be done according to the other ones.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER
The class lookup will be done in the thread contextClassLoader
if the former hasn't been found in the otherClassLoader
s.BEFORE
The class lookup will be done in the thread contextClassLoader
prior to the otherClassLoader
s.NEVER
The current thread contextClassLoader
will never be used during the class lookup.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TcclLookupPrecedence
valueOf(String name)
Returns the enum constant of this type with the specified name.static TcclLookupPrecedence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final TcclLookupPrecedence NEVER
The current thread contextClassLoader
will never be used during the class lookup.
-
BEFORE
public static final TcclLookupPrecedence BEFORE
The class lookup will be done in the thread contextClassLoader
prior to the otherClassLoader
s.
-
AFTER
public static final TcclLookupPrecedence 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 Detail
-
values
public static TcclLookupPrecedence[] 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 (TcclLookupPrecedence c : TcclLookupPrecedence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TcclLookupPrecedence 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 nameNullPointerException
- if the argument is null
-
-