Class FieldHint

java.lang.Object
org.springframework.aot.hint.MemberHint
org.springframework.aot.hint.FieldHint

public final class FieldHint extends MemberHint
A hint that describes the need of reflection on a Field.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • isAllowWrite

      public boolean isAllowWrite()
      Return whether setting the value of the field should be allowed.
      Returns:
      true to allow Field.set(Object, Object).
    • isAllowUnsafeAccess

      public boolean isAllowUnsafeAccess()
      Return whether if using Unsafe on the field should be allowed.
      Returns:
      true to allow unsafe access