Package org.springframework.aot.hint
Class FieldHint.Builder
java.lang.Object
org.springframework.aot.hint.FieldHint.Builder
- Enclosing class:
- FieldHint
Builder for
FieldHint.-
Constructor Summary
Constructors -
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.build()Create aFieldHintbased on the state of this builder.
-
Constructor Details
-
Builder
-
-
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
-
build
Create aFieldHintbased on the state of this builder.- Returns:
- a field hint
-