Package org.springframework.nativex.hint
Annotation Type FieldHint
-
@Retention(RUNTIME) public @interface FieldHint
Configure reflection for a given field.- Author:
- Andy Clement, Sebastien Deleuze, Christoph Strobl
- See Also:
- Manual configuration of reflection use in native images
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
name
The name of the field.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
allowUnsafeAccess
Allow unsafe access on the related field.boolean
allowWrite
Allow write access on the related field.
-
-
-
-
allowUnsafeAccess
boolean allowUnsafeAccess
Allow unsafe access on the related field.- Returns:
true
if allowed- See Also:
- Unsafe accesses
- Default:
- false
-
-
-
allowWrite
boolean allowWrite
Allow write access on the related field.- Returns:
true
if allowed.- See Also:
- Manual Configuration
- Default:
- false
-
-