Package org.springframework.nativex.hint
Annotation Type InitializationHint
-
@Repeatable(InitializationHints.class) @Retention(RUNTIME) public @interface InitializationHint
Used byNativeHint
annotations 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 InitializationTime
initTime
Set the initialization time, usually set toInitializationTime.BUILD
since runtime is GraalVM native image default.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]
packageNames
Configure initialization for a set of packages.String[]
typeNames
Alternative way to configure initialization, should be used when type visibility prevents usingClass
references, or for nested types which should be specified using a$
separator (for examplecom.example.Foo$Bar
).Class<?>[]
types
Preferred way to configure initialization.
-
-
-
Element Detail
-
initTime
InitializationTime initTime
Set the initialization time, usually set toInitializationTime.BUILD
since 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:
- {}
-
-