Package org.springframework.aot.hint
Class FieldHint.Builder
java.lang.Object
org.springframework.aot.hint.FieldHint.Builder
- Enclosing class:
- FieldHint
Builder for
FieldHint
.-
Method Summary
Modifier and TypeMethodDescriptionallowUnsafeAccess
(boolean allowUnsafeAccess) Specify if usingUnsafe
on the field should be allowed.allowWrite
(boolean allowWrite) Specify if setting the value of the field should be allowed.
-
Method Details
-
allowWrite
Specify if setting the value of the field should be allowed.- Parameters:
allowWrite
-true
to allowField.set(Object, Object)
- Returns:
this
, to facilitate method chaining
-
allowUnsafeAccess
Specify if usingUnsafe
on the field should be allowed.- Parameters:
allowUnsafeAccess
-true
to allow unsafe access- Returns:
this
, to facilitate method chaining
-