From a418549dbaaefbded69e6463e9ea2fe50a84d1cd Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Tue, 16 Jul 2024 12:54:34 +0200 Subject: [PATCH] Bring back reflection hint registration for the Event Registry ResourceRefTypeHandler --- .../impl/aot/FlowableEventRegistryRuntimeHints.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/aot/FlowableEventRegistryRuntimeHints.java b/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/aot/FlowableEventRegistryRuntimeHints.java index 84f92b4fb30..735b90ed6f4 100644 --- a/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/aot/FlowableEventRegistryRuntimeHints.java +++ b/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/aot/FlowableEventRegistryRuntimeHints.java @@ -13,6 +13,8 @@ package org.flowable.eventregistry.impl.aot; import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar; +import org.flowable.eventregistry.impl.persistence.ResourceRefTypeHandler; +import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; @@ -24,5 +26,7 @@ public class FlowableEventRegistryRuntimeHints implements RuntimeHintsRegistrar @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) { FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/eventregistry/db/mapping", hints, classLoader); + hints.reflection() + .registerType(ResourceRefTypeHandler.class, MemberCategory.values()); } }