From b40dd5c128a8236c83670322b6ee5cd6c5d41b47 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:13:03 -0300 Subject: [PATCH] feat: provide reflection hints for native compilation --- pom.xml | 2 +- .../orgchart/reflect-config.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/META-INF/native-image/com.flowingcode.addons/orgchart/reflect-config.json diff --git a/pom.xml b/pom.xml index f3eea02..b240465 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.flowingcode.vaadin.addons orgchart-addon - 5.0.1-SNAPSHOT + 5.1.0-SNAPSHOT OrgChart Add-on diff --git a/src/main/resources/META-INF/native-image/com.flowingcode.addons/orgchart/reflect-config.json b/src/main/resources/META-INF/native-image/com.flowingcode.addons/orgchart/reflect-config.json new file mode 100644 index 0000000..cc10336 --- /dev/null +++ b/src/main/resources/META-INF/native-image/com.flowingcode.addons/orgchart/reflect-config.json @@ -0,0 +1,15 @@ +[ +{ + "name":"com.flowingcode.vaadin.addons.orgchart.OrgChartItem", + "allDeclaredFields":true, + "queryAllDeclaredMethods":true, + "queryAllDeclaredConstructors":true, + "methods":[{"name":"getChildren","parameterTypes":[] }, {"name":"getClassName","parameterTypes":[] }, {"name":"getData","parameterTypes":[] }, {"name":"getId","parameterTypes":[] }, {"name":"getName","parameterTypes":[] }, {"name":"getTitle","parameterTypes":[] }] +}, +{ + "name":"com.flowingcode.vaadin.addons.orgchart.client.OrgChartState", + "allDeclaredFields":true, + "queryAllDeclaredMethods":true, + "queryAllDeclaredConstructors":true +} +]