Skip to content

Commit 153be31

Browse files
abuijzesmcvb
authored andcommitted
Added native-compilation hints for grpc-netty-shaded
These are hints that Spring Boot would generate for normal netty automatically, but since grpc-netty-shaded adds a package prefix to Netty classes, these Spring-Boot generated hints aren't suitable for them. (cherry picked from commit 5e0c3a4)
1 parent b31442c commit 153be31

File tree

6 files changed

+8095
-8
lines changed

6 files changed

+8095
-8
lines changed

src/main/java/org/axonframework/springboot/aot/AxonRuntimeHints.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.axonframework.serialization.SerializedMessage;
3333
import org.axonframework.serialization.SerializedMetaData;
3434
import org.springframework.aot.hint.BindingReflectionHintsRegistrar;
35-
import org.springframework.aot.hint.MemberCategory;
3635
import org.springframework.aot.hint.ReflectionHints;
3736
import org.springframework.aot.hint.RuntimeHints;
3837
import org.springframework.aot.hint.RuntimeHintsRegistrar;
@@ -56,7 +55,6 @@ public class AxonRuntimeHints implements RuntimeHintsRegistrar {
5655
@Override
5756
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
5857
ReflectionHints reflectionHints = hints.reflection();
59-
registerGrpcHints(reflectionHints);
6058
registrar.registerReflectionHints(reflectionHints, axonSerializableClasses());
6159
hints.resources().registerPattern("axonserver_download.txt");
6260
hints.resources().registerPattern("SQLErrorCode.properties");
@@ -66,12 +64,6 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
6664
"org.axonframework.common.jdbc.UnitOfWorkAwareConnectionProviderWrapper$UoWAttachedConnection"));
6765
}
6866

69-
private void registerGrpcHints(ReflectionHints hints) {
70-
hints.registerType(
71-
TypeReference.of("io.netty.channel.epoll.EpollChannelOption"),
72-
MemberCategory.PUBLIC_FIELDS);
73-
}
74-
7567
private Type[] axonSerializableClasses() {
7668
return new Type[]{
7769
SagaEntry.class,

0 commit comments

Comments
 (0)