Package org.eclipse.sisu.space
Enum BeanScanning
- All Implemented Interfaces:
Serializable
,Comparable<BeanScanning>
,java.lang.constant.Constable
Common techniques for discovering bean implementations.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScan once and cache resultsUse global index (application)Use local index (plug-ins)Never scanAlways scan -
Method Summary
Modifier and TypeMethodDescriptionstatic BeanScanning
Selects the property named "org.eclipse.sisu.space.BeanScanning" and attempts to map its value to aBeanScanning
literal, ignoring case.static BeanScanning
Returns the enum constant of this type with the specified name.static BeanScanning[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ON
Always scan -
OFF
Never scan -
CACHE
Scan once and cache results -
INDEX
Use local index (plug-ins) -
GLOBAL_INDEX
Use global index (application)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
select
Selects the property named "org.eclipse.sisu.space.BeanScanning" and attempts to map its value to aBeanScanning
literal, ignoring case. Defaults toON
for blank or null values.- Parameters:
properties
- The properties- Returns:
- Selected scanning option
- Throws:
IllegalArgumentException
- if the property value cannot be mapped
-