You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/10/08 16:26:09 UTC
[camel-quarkus] 03/03: Remove redundant BuildStep for CacheLoader
reflection registration
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit bda1034d3b45512c995dc04c7720d0714a27d087
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Oct 8 13:23:42 2020 +0100
Remove redundant BuildStep for CacheLoader reflection registration
Fixes #1790
---
.../component/caffeine/deployment/CaffeineProcessor.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/extensions/caffeine/deployment/src/main/java/org/apache/camel/quarkus/component/caffeine/deployment/CaffeineProcessor.java b/extensions/caffeine/deployment/src/main/java/org/apache/camel/quarkus/component/caffeine/deployment/CaffeineProcessor.java
index 2a420a3..47f00be 100644
--- a/extensions/caffeine/deployment/src/main/java/org/apache/camel/quarkus/component/caffeine/deployment/CaffeineProcessor.java
+++ b/extensions/caffeine/deployment/src/main/java/org/apache/camel/quarkus/component/caffeine/deployment/CaffeineProcessor.java
@@ -16,12 +16,8 @@
*/
package org.apache.camel.quarkus.component.caffeine.deployment;
-import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
-import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
class CaffeineProcessor {
@@ -32,15 +28,4 @@ class CaffeineProcessor {
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
-
- @BuildStep
- void reflectiveClasses(
- CombinedIndexBuildItem combinedIndex,
- BuildProducer<ReflectiveClassBuildItem> reflectiveClasses) {
-
- reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, "com.github.benmanes.caffeine.cache.CacheLoader"));
- for (ClassInfo info : combinedIndex.getIndex().getAllKnownImplementors(CACHE_LOADER_NAME)) {
- reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, info.name().toString()));
- }
- }
}