Enum BeanSource
- java.lang.Object
-
- java.lang.Enum<BeanSource>
-
- org.hibernate.search.engine.environment.bean.impl.BeanSource
-
- All Implemented Interfaces:
Serializable,Comparable<BeanSource>
public enum BeanSource extends Enum<BeanSource>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEAN_MANAGERThe bean manager, e.g.BEAN_MANAGER_ASSUME_CLASS_NAMEThe bean manager, e.g.CONFIGURATIONThe beans defined usingBeanConfigurers.REFLECTIONReflection, i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BeanSourcevalueOf(String name)Returns the enum constant of this type with the specified name.static BeanSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFIGURATION
public static final BeanSource CONFIGURATION
The beans defined usingBeanConfigurers.
-
BEAN_MANAGER
public static final BeanSource BEAN_MANAGER
The bean manager, e.g. CDI, Spring, ...
-
BEAN_MANAGER_ASSUME_CLASS_NAME
public static final BeanSource BEAN_MANAGER_ASSUME_CLASS_NAME
The bean manager, e.g. CDI, Spring, ..., but interpreting names as class names instead of bean names.
-
REFLECTION
public static final BeanSource REFLECTION
Reflection, i.e. the public, no-argument constructor of the bean class.
-
-
Method Detail
-
values
public static BeanSource[] 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 (BeanSource c : BeanSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BeanSource 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
-
-