Enum Lazy.Kind
- All Implemented Interfaces:
Serializable, Comparable<Lazy.Kind>
- Enclosing class:
Lazy
Control whether a compile-time proxy is generated to support lazy initialization.
When using FORCE_PROXY a compile-time error will occur if the conditions for
generating a proxy are not met (for example the class is final or has no no-args constructor).
When using AUTO_PROXY a warning will be issued and lazy initialization will fall
back to provider based lazy initialization.
When using PROVIDER no proxy is generated and lazy initialization is done via a
provider.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempt compile-time proxy, will warn and fallback to provider compilation if missing conditions for generationEnsures that a compile-time proxy is generated, will fail compilation if missing conditions for generationNo proxy, use a provider based lazy initialization -
Method Summary
-
Enum Constant Details
-
FORCE_PROXY
Ensures that a compile-time proxy is generated, will fail compilation if missing conditions for generation -
AUTO_PROXY
Attempt compile-time proxy, will warn and fallback to provider compilation if missing conditions for generation -
PROVIDER
-
-
Method Details
-
values
-
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
-