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
-
-
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.
-
-
-
Element Detail
-
name
String name
The name of the field.- Returns:
- the name
-
-
-
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
-
-