Package org.springframework.nativex.hint
Annotation Type SerializationHint
-
@Repeatable(SerializationHints.class) @Retention(RUNTIME) public @interface SerializationHint
Used byNativeHintannotations to indicate which types should be serializable in a native image. Class references via thetypes()member are the preferred form of use but sometimes due to accessibility restrictions or nested types the type names may need to be specified in thetypeNames()member.- Author:
- Andy Clement, Sebastien Deleuze
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]typeNamesAlternative way to configure serialization if visibility preventsClassreferences, or for nested types which should be specific using a$separator (for examplecom.example.Foo$Bar).Class<?>[]typesPreferred way to configure types for serialization.
-
-
-
Element Detail
-
types
Class<?>[] types
Preferred way to configure types for serialization.- Returns:
- the types
- Default:
- {}
-
-