Package org.eclipse.sisu.space
Enum Class BeanScanning
- All Implemented Interfaces:
Serializable
,Comparable<BeanScanning>
,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 -
Constructor Summary
Constructors -
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 class with the specified name.static BeanScanning[]
values()
Returns an array containing the constants of this enum class, 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)
-
-
Constructor Details
-
BeanScanning
private BeanScanning()
-
-
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
-
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
-