Enum HibernateOrmReflectionStrategyName
- java.lang.Object
-
- java.lang.Enum<HibernateOrmReflectionStrategyName>
-
- org.hibernate.search.mapper.orm.cfg.spi.HibernateOrmReflectionStrategyName
-
- All Implemented Interfaces:
Serializable,Comparable<HibernateOrmReflectionStrategyName>
public enum HibernateOrmReflectionStrategyName extends Enum<HibernateOrmReflectionStrategyName>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVA_LANG_REFLECTUsejava.lang.reflectdirectly for reflection, such as calling a method dynamically.METHOD_HANDLEUsejava.lang.invokefor reflection, such as calling a method dynamically.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HibernateOrmReflectionStrategyNameof(String value)static HibernateOrmReflectionStrategyNamevalueOf(String name)Returns the enum constant of this type with the specified name.static HibernateOrmReflectionStrategyName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAVA_LANG_REFLECT
public static final HibernateOrmReflectionStrategyName JAVA_LANG_REFLECT
Usejava.lang.reflectdirectly for reflection, such as calling a method dynamically.
-
METHOD_HANDLE
public static final HibernateOrmReflectionStrategyName METHOD_HANDLE
Usejava.lang.invokefor reflection, such as calling a method dynamically. This means usingMethodHandles.LookupandMethodHandlein particular.
-
-
Method Detail
-
values
public static HibernateOrmReflectionStrategyName[] 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 (HibernateOrmReflectionStrategyName c : HibernateOrmReflectionStrategyName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HibernateOrmReflectionStrategyName 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
-
of
public static HibernateOrmReflectionStrategyName of(String value)
-
-