use of io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem in project camel-quarkus by apache.
the class HazelcastProcessor method registerTypeHierarchy.
private static void registerTypeHierarchy(BuildProducer<ReflectiveHierarchyBuildItem> reflectiveHierarchyClass, BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> ignoreWarnings, Class<?>... classNames) {
for (Class<?> klass : classNames) {
DotName simpleName = DotName.createSimple(klass.getName());
reflectiveHierarchyClass.produce(new ReflectiveHierarchyBuildItem.Builder().type(Type.create(simpleName, Type.Kind.CLASS)).build());
ignoreWarnings.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(simpleName));
}
}
use of io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem in project camel-quarkus by apache.
the class ConsulClientSupportProcessor method ignoredOnReflectiveHierarchyRegistration.
@BuildStep
void ignoredOnReflectiveHierarchyRegistration(BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> ignored) {
ignored.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(DOT_NAME_IMMUTABLE_LIST));
ignored.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(DOT_NAME_IMMUTABLE_MAP));
}
use of io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem in project automatiko-engine by automatiko-io.
the class AutomatikoQuarkusProcessor method reflectiveClassesRegistrationStep.
@BuildStep
public void reflectiveClassesRegistrationStep(ApplicationArchivesBuildItem archives, BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> reflectiveHierarchy, BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.api.event.AbstractDataEvent"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.AbstractProcessDataEvent"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.ProcessInstanceDataEvent"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.UserTaskInstanceDataEvent"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.VariableInstanceDataEvent"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.impl.ProcessInstanceEventBody"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.impl.NodeInstanceEventBody"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.impl.ProcessErrorEventBody"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.impl.VariableInstanceEventBody"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "io.automatiko.engine.services.event.impl.UserTaskInstanceEventBody"));
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, "org.mvel2.optimizers.dynamic.DynamicOptimizer"));
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, "org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, ArrayList.class.getCanonicalName()));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, byte[].class.getName()));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, BaseWorkItem.class));
List<IndexView> archiveIndexes = new ArrayList<>();
for (ApplicationArchive i : archives.getAllApplicationArchives()) {
archiveIndexes.add(i.getIndex());
}
CompositeIndex archivesIndex = CompositeIndex.create(archiveIndexes);
// add functions classes found
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, "io.automatiko.engine.services.execution.BaseFunctions"));
archivesIndex.getAllKnownImplementors(createDotName("io.automatiko.engine.api.Functions")).stream().map(c -> c.name().toString()).forEach(c -> reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, c)));
// DMN related
DotName classDotName = createDotName(CodeGenConstants.DMN_CLASS);
if (!archivesIndex.getAnnotations(classDotName).isEmpty() || archivesIndex.getClassByName(classDotName) != null) {
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.api.builder.Message$Level")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNContext")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNDecisionResult")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNDecisionResult$DecisionEvaluationStatus")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNMessage")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNMessage$Severity")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.core.DMNMessageType")));
reflectiveHierarchy.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(createDotName("org.kie.dmn.api.feel.runtime.events.FEELEvent")));
}
// jackson node classes for serializing JSON tree instances
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.TextNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.BinaryNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.BooleanNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.NullNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.BigIntegerNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.DecimalNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.DoubleNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.FloatNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.IntNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.LongNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.ShortNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.POJONode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.ObjectNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, "com.fasterxml.jackson.databind.node.ArrayNode"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, Long.class.getCanonicalName()));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, Integer.class.getCanonicalName()));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, Boolean.class.getCanonicalName()));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, String.class.getCanonicalName()));
}
use of io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem in project kogito-runtimes by kiegroup.
the class DecisionsAssetsProcessor method reflectiveDMNREST.
@BuildStep
public List<ReflectiveHierarchyIgnoreWarningBuildItem> reflectiveDMNREST() {
List<ReflectiveHierarchyIgnoreWarningBuildItem> result = new ArrayList<>();
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.api.builder" + ".Message$Level")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core" + ".DMNContext")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core" + ".DMNDecisionResult")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core.DMNDecisionResult$DecisionEvaluationStatus")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core" + ".DMNMessage")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core" + ".DMNMessage$Severity")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.core" + ".DMNMessageType")));
result.add(new ReflectiveHierarchyIgnoreWarningBuildItem(DotName.createSimple("org.kie.dmn.api.feel.runtime" + ".events.FEELEvent")));
return result;
}
use of io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem in project quarkus-hazelcast-client by hazelcast.
the class HazelcastClientProcessor method registerTypeHierarchy.
private static void registerTypeHierarchy(BuildProducer<ReflectiveHierarchyBuildItem> reflectiveHierarchyClass, BuildProducer<ReflectiveHierarchyIgnoreWarningBuildItem> ignoreWarnings, Class<?>... classNames) {
for (Class<?> klass : classNames) {
DotName simpleName = DotName.createSimple(klass.getName());
reflectiveHierarchyClass.produce(new ReflectiveHierarchyBuildItem.Builder().type(Type.create(simpleName, Type.Kind.CLASS)).build());
ignoreWarnings.produce(new ReflectiveHierarchyIgnoreWarningBuildItem(simpleName));
}
}
Aggregations