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
-
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.build()
Create aFieldHint
based 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
-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
-
build
Create aFieldHint
based on the state of this builder.- Returns:
- a field hint
-