Package org.springframework.nativex.hint
Annotation Type InitializationHint
-
@Repeatable(InitializationHints.class) @Retention(RUNTIME) public @interface InitializationHint
Used byNativeHintannotations to indicate which classes/packages should be initialized explicitly at build-time or runtime.- Author:
- Andy Clement, Sebastien Deleuze
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description InitializationTimeinitTimeSet the initialization time, usually set toInitializationTime.BUILDsince runtime is GraalVM native image default.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]packageNamesConfigure initialization for a set of packages.String[]typeNamesAlternative way to configure initialization, should be used when type visibility prevents usingClassreferences, or for nested types which should be specified using a$separator (for examplecom.example.Foo$Bar).Class<?>[]typesPreferred way to configure initialization.
-
-
-
Element Detail
-
initTime
InitializationTime initTime
Set the initialization time, usually set toInitializationTime.BUILDsince runtime is GraalVM native image default.- Returns:
- the initialization time
-
-
-
types
Class<?>[] types
Preferred way to configure initialization.- Returns:
- the types
- Default:
- {}
-
-
-
packageNames
String[] packageNames
Configure initialization for a set of packages.- Returns:
- the package names
- Default:
- {}
-
-