|
17 | 17 | package org.springframework.pulsar.aot; |
18 | 18 |
|
19 | 19 | import java.util.HashSet; |
| 20 | +import java.util.LinkedHashMap; |
20 | 21 | import java.util.TreeMap; |
21 | 22 | import java.util.stream.Stream; |
22 | 23 |
|
@@ -54,11 +55,13 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) |
54 | 55 | // and introspect all public methods. The components are a mix of JDK classes, |
55 | 56 | // core Pulsar classes, |
56 | 57 | // some other shaded components available through Pulsar client. |
57 | | - Stream.of(HashSet.class, TreeMap.class, Authentication.class, AuthenticationDataProvider.class, |
58 | | - SecretsSerializer.class, PulsarAdminBuilderImpl.class, OffloadProcessStatusImpl.class, Commands.class) |
59 | | - .forEach(type -> reflectionHints.registerType(type, |
60 | | - builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, |
61 | | - MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.INTROSPECT_PUBLIC_METHODS))); |
| 58 | + Stream.of(HashSet.class, LinkedHashMap.class, TreeMap.class, Authentication.class, |
| 59 | + AuthenticationDataProvider.class, SecretsSerializer.class, PulsarAdminBuilderImpl.class, |
| 60 | + OffloadProcessStatusImpl.class, Commands.class).forEach( |
| 61 | + type -> reflectionHints.registerType(type, |
| 62 | + builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, |
| 63 | + MemberCategory.INVOKE_DECLARED_METHODS, |
| 64 | + MemberCategory.INTROSPECT_PUBLIC_METHODS))); |
62 | 65 |
|
63 | 66 | // In addition to the above member category levels, these components need field |
64 | 67 | // and declared class level access. |
|
0 commit comments