|
1 | 1 | package kotlin;
|
2 | 2 |
|
3 |
| -import org.springframework.nativex.type.NativeConfiguration; |
| 3 | +import org.springframework.nativex.hint.AccessBits; |
4 | 4 | import org.springframework.nativex.hint.NativeHint;
|
5 | 5 | import org.springframework.nativex.hint.ResourcesInfo;
|
6 | 6 | import org.springframework.nativex.hint.TypeInfo;
|
| 7 | +import org.springframework.nativex.type.NativeConfiguration; |
7 | 8 |
|
| 9 | +import static org.springframework.nativex.hint.AccessBits.*; |
8 | 10 | import static org.springframework.nativex.hint.AccessBits.DECLARED_CONSTRUCTORS;
|
9 | 11 | import static org.springframework.nativex.hint.AccessBits.DECLARED_FIELDS;
|
10 | 12 | import static org.springframework.nativex.hint.AccessBits.DECLARED_METHODS;
|
11 | 13 | import static org.springframework.nativex.hint.AccessBits.PUBLIC_METHODS;
|
12 | 14 |
|
13 |
| -@NativeHint( |
14 |
| - trigger=kotlin.Unit.class, |
| 15 | +@NativeHint(trigger = kotlin.Unit.class, |
15 | 16 | resources = {
|
16 | 17 | @ResourcesInfo(patterns= {
|
17 | 18 | "META-INF/.*.kotlin_module$",
|
18 | 19 | ".*.kotlin_builtins",
|
19 | 20 | "META-INF/services/.*"
|
20 | 21 | })
|
21 | 22 | }, types = {
|
22 |
| - @TypeInfo(types = kotlin.reflect.jvm.internal.ReflectionFactoryImpl.class, access = DECLARED_CONSTRUCTORS), |
23 | 23 | @TypeInfo(types = kotlin.KotlinVersion.class, access = PUBLIC_METHODS | DECLARED_FIELDS | DECLARED_METHODS | DECLARED_CONSTRUCTORS),
|
24 | 24 | @TypeInfo(typeNames = {
|
25 | 25 | "kotlin.KotlinVersion[]",
|
26 | 26 | "kotlin.KotlinVersion$Companion",
|
27 | 27 | "kotlin.KotlinVersion$Companion[]"
|
28 | 28 | })
|
29 | 29 | })
|
| 30 | +@NativeHint(trigger = kotlin.reflect.full.KClasses.class, |
| 31 | + types = { |
| 32 | + @TypeInfo(types = kotlin.reflect.full.KClasses.class, access = CLASS), |
| 33 | + @TypeInfo(types = kotlin.Metadata.class, access = DECLARED_METHODS), |
| 34 | + @TypeInfo(types = kotlin.reflect.jvm.internal.ReflectionFactoryImpl.class, access = DECLARED_CONSTRUCTORS), |
| 35 | + @TypeInfo(types = kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter.class, access = DECLARED_FIELDS) |
| 36 | + }) |
| 37 | +@NativeHint(trigger = kotlin.coroutines.Continuation.class, |
| 38 | + types = @TypeInfo(types = kotlin.coroutines.Continuation.class, typeNames = "kotlin.coroutines.Continuation[]", access = LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS)) |
| 39 | +@NativeHint(trigger = com.fasterxml.jackson.module.kotlin.KotlinModule.class, |
| 40 | + types = { |
| 41 | + @TypeInfo(types = com.fasterxml.jackson.module.kotlin.KotlinModule.class), |
| 42 | + @TypeInfo(typeNames = { |
| 43 | + "com.fasterxml.jackson.module.kotlin.KotlinModule$Builder", |
| 44 | + "com.fasterxml.jackson.module.kotlin.SingletonSupport", |
| 45 | + "java.lang.String" |
| 46 | + }, access = CLASS) |
| 47 | + }) |
| 48 | + |
30 | 49 | public class KotlinHints implements NativeConfiguration {
|
31 | 50 | }
|
0 commit comments