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 usingUnsafeon 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-trueto allowField.set(Object, Object)- Returns:
this, to facilitate method chaining
-
allowUnsafeAccess
Specify if usingUnsafeon the field should be allowed.- Parameters:
allowUnsafeAccess-trueto allow unsafe access- Returns:
this, to facilitate method chaining
-