graal-reflection-configuration-generator

Automatically generate graal reflection configuration json

Лицензия

Лицензия

Категории

Категории

Configuration Библиотеки уровня приложения config Graal Native Инструменты разработки
Группа

Группа

com.mageddo.nativeimage
Идентификатор

Идентификатор

graal-reflection-configuration-generator
Последняя версия

Последняя версия

2.0.2
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

graal-reflection-configuration-generator
Automatically generate graal reflection configuration json
Ссылка на сайт

Ссылка на сайт

https://github.com/mageddo/graal-reflection-configuration-generator.git
Система контроля версий

Система контроля версий

https://github.com/mageddo/graal-reflection-configuration-generator.git

Скачать graal-reflection-configuration-generator

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-databind jar 2.9.8

Модули Проекта

Данный проект не имеет модулей.

Archived

I wrote a annotatation processor instead, take a look https://github.com/mageddo-projects/annotation-processing-tools/tree/master/reflection-config-generator

Graal Reflection Configuration Generator provides an easy way to geenrate GraalVM reflection config files, configure the plugin on your gradle project, annotate the desired class class with @RuntimeReflection run the gradle build then you're done.

See an example app

Using

Gradle dependencies

dependencies {
  compileOnly("com.mageddo.nativeimage:reflection-config-generator:2.1.1")
  annotationProcessor("com.mageddo.nativeimage:reflection-config-generator:2.1.1")
}

Consider the following example

package com.acme;

import nativeimage.Reflection;

@Reflection(declaredConstructors = true, declaredFields = true)
public class Fruit {
  private String name;
  private String color;   
}

it will automatically configure reflection for Fruit props when compiling using native-image generating a json like

[
  {
    "name" : "com.acme.Fruit",
    "allDeclaredConstructors" : true,
    "allPublicConstructors" : false,
    "allDeclaredMethods" : false,
    "allPublicMethods" : false,
    "allPublicFields" : false,
    "allDeclaredFields" : true
  }
]

Версии библиотеки

Версия
2.0.2