Camel-AWS extensions: Cleanup
diff --git a/extensions/aws-ec2/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ec2/deployment/AwsEc2Processor.java b/extensions/aws-ec2/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ec2/deployment/AwsEc2Processor.java
index 8f36127..dc175a9 100644
--- a/extensions/aws-ec2/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ec2/deployment/AwsEc2Processor.java
+++ b/extensions/aws-ec2/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ec2/deployment/AwsEc2Processor.java
@@ -16,13 +16,7 @@
*/
package org.apache.camel.quarkus.component.aws.ec2.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import org.apache.camel.component.aws.ec2.EC2Configuration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -36,7 +30,6 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
@@ -60,8 +53,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -73,10 +64,4 @@
EC2Configuration.class.getCanonicalName()));
}
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
-
}
diff --git a/extensions/aws-ecs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ecs/deployment/AwsEcsProcessor.java b/extensions/aws-ecs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ecs/deployment/AwsEcsProcessor.java
index 293c0f5..bcdf823 100644
--- a/extensions/aws-ecs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ecs/deployment/AwsEcsProcessor.java
+++ b/extensions/aws-ecs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/ecs/deployment/AwsEcsProcessor.java
@@ -16,13 +16,7 @@
*/
package org.apache.camel.quarkus.component.aws.ecs.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import org.apache.camel.component.aws.ecs.ECSConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -36,7 +30,6 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
@@ -61,8 +54,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -73,10 +64,4 @@
CredentialScope.class.getCanonicalName(),
ECSConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
}
diff --git a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/AwsEKSProcessor.java b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/AwsEKSProcessor.java
index 88d6aee..e4807c8 100644
--- a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/AwsEKSProcessor.java
+++ b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/AwsEKSProcessor.java
@@ -16,9 +16,6 @@
*/
package org.apache.camel.quarkus.component.aws.eks.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
import com.amazonaws.partitions.model.Partition;
@@ -30,13 +27,9 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.apache.camel.component.aws.eks.EKSConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
class AwsEKSProcessor {
@@ -59,8 +52,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -71,10 +62,4 @@
CredentialScope.class.getCanonicalName(),
EKSConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
}
diff --git a/extensions/aws-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws/iam/deployment/AwsIamProcessor.java b/extensions/aws-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws/iam/deployment/AwsIamProcessor.java
index c95c5ec..9d48585 100644
--- a/extensions/aws-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws/iam/deployment/AwsIamProcessor.java
+++ b/extensions/aws-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws/iam/deployment/AwsIamProcessor.java
@@ -16,13 +16,7 @@
*/
package org.apache.camel.quarkus.component.aws.iam.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import org.apache.camel.component.aws.iam.IAMConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -36,7 +30,6 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
@@ -61,8 +54,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -73,10 +64,4 @@
CredentialScope.class.getCanonicalName(),
IAMConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
}
diff --git a/extensions/aws-kms/deployment/src/main/java/org/apache/camel/quarkus/component/aws/kms/deployment/AwsKmsProcessor.java b/extensions/aws-kms/deployment/src/main/java/org/apache/camel/quarkus/component/aws/kms/deployment/AwsKmsProcessor.java
index dc3d60d..783746c 100644
--- a/extensions/aws-kms/deployment/src/main/java/org/apache/camel/quarkus/component/aws/kms/deployment/AwsKmsProcessor.java
+++ b/extensions/aws-kms/deployment/src/main/java/org/apache/camel/quarkus/component/aws/kms/deployment/AwsKmsProcessor.java
@@ -16,13 +16,7 @@
*/
package org.apache.camel.quarkus.component.aws.kms.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import org.apache.camel.component.aws.kms.KMSConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -36,7 +30,6 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
@@ -61,8 +54,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -73,10 +64,4 @@
CredentialScope.class.getCanonicalName(),
KMSConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
}
diff --git a/extensions/aws-lambda/deployment/src/main/java/org/apache/camel/quarkus/component/aws/lambda/deployment/AwsLambdaProcessor.java b/extensions/aws-lambda/deployment/src/main/java/org/apache/camel/quarkus/component/aws/lambda/deployment/AwsLambdaProcessor.java
index f786b32..7b4000a 100644
--- a/extensions/aws-lambda/deployment/src/main/java/org/apache/camel/quarkus/component/aws/lambda/deployment/AwsLambdaProcessor.java
+++ b/extensions/aws-lambda/deployment/src/main/java/org/apache/camel/quarkus/component/aws/lambda/deployment/AwsLambdaProcessor.java
@@ -16,13 +16,7 @@
*/
package org.apache.camel.quarkus.component.aws.lambda.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import org.apache.camel.component.aws.lambda.LambdaConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -60,8 +54,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -72,10 +64,4 @@
CredentialScope.class.getCanonicalName(),
LambdaConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
}
diff --git a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/AwsS3Processor.java b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/AwsS3Processor.java
index 6941990..bba660d 100644
--- a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/AwsS3Processor.java
+++ b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/AwsS3Processor.java
@@ -16,9 +16,6 @@
*/
package org.apache.camel.quarkus.component.aws.s3.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
import com.amazonaws.partitions.model.Partition;
@@ -32,14 +29,10 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import org.apache.camel.component.aws.s3.S3Configuration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
class AwsS3Processor {
@@ -67,8 +60,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -81,10 +72,4 @@
S3Configuration.class.getCanonicalName()));
}
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
-
}
diff --git a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/AwsSNSProcessor.java b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/AwsSNSProcessor.java
index 752148d..a235887 100644
--- a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/AwsSNSProcessor.java
+++ b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/AwsSNSProcessor.java
@@ -16,9 +16,6 @@
*/
package org.apache.camel.quarkus.component.aws.sns.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import com.amazonaws.auth.AWS4Signer;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -31,13 +28,9 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.apache.camel.component.aws.sns.SnsConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
class AwsSNSProcessor {
@@ -60,8 +53,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -74,10 +65,4 @@
SnsConfiguration.class.getCanonicalName()));
}
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
-
}
diff --git a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/AwsSQSProcessor.java b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/AwsSQSProcessor.java
index 3b905d2..de97f4e 100644
--- a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/AwsSQSProcessor.java
+++ b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/AwsSQSProcessor.java
@@ -16,9 +16,6 @@
*/
package org.apache.camel.quarkus.component.aws.sqs.deployment;
-import java.util.Collection;
-import java.util.stream.Collectors;
-
import com.amazonaws.auth.AWS4Signer;
import com.amazonaws.partitions.model.CredentialScope;
import com.amazonaws.partitions.model.Endpoint;
@@ -31,13 +28,9 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.apache.camel.component.aws.sqs.SqsConfiguration;
-import org.jboss.jandex.ClassInfo;
-import org.jboss.jandex.DotName;
-import org.jboss.jandex.IndexView;
class AwsSQSProcessor {
@@ -60,8 +53,6 @@
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<NativeImageResourceBuildItem> resource) {
- IndexView view = combinedIndexBuildItem.getIndex();
-
resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json"));
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false,
Partitions.class.getCanonicalName(),
@@ -73,11 +64,4 @@
AWS4Signer.class.getCanonicalName(),
SqsConfiguration.class.getCanonicalName()));
}
-
- protected Collection<String> getImplementations(IndexView view, Class<?> type) {
- return view.getAllKnownImplementors(DotName.createSimple(type.getName())).stream()
- .map(ClassInfo::toString)
- .collect(Collectors.toList());
- }
-
}