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 2022/10/17 06:27:10 UTC
[camel-quarkus] 01/02: Avoid usage of deprecated ClientProxyUnwrapper
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch 2.13.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 28cd7bce664cd11d3a22d8590c36ef1e05fbed02
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Oct 14 08:19:43 2022 +0100
Avoid usage of deprecated ClientProxyUnwrapper
---
.../org/apache/camel/quarkus/CamelQuarkusBeanPostProcessor.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/CamelQuarkusBeanPostProcessor.java b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/CamelQuarkusBeanPostProcessor.java
index 2da61bd1c5..6c0f72467d 100644
--- a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/CamelQuarkusBeanPostProcessor.java
+++ b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/CamelQuarkusBeanPostProcessor.java
@@ -16,14 +16,11 @@
*/
package org.apache.camel.quarkus;
-import io.quarkus.arc.runtime.ClientProxyUnwrapper;
+import io.quarkus.arc.ClientProxy;
import org.apache.camel.CamelContext;
import org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor;
public class CamelQuarkusBeanPostProcessor extends DefaultCamelBeanPostProcessor {
-
- private final ClientProxyUnwrapper proxyUnwrapper = new ClientProxyUnwrapper();
-
public CamelQuarkusBeanPostProcessor(CamelContext camelContext) {
super(camelContext);
}
@@ -31,6 +28,6 @@ public class CamelQuarkusBeanPostProcessor extends DefaultCamelBeanPostProcessor
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
// If the bean is a CDI proxy, unwrap it before processing
- return super.postProcessBeforeInitialization(proxyUnwrapper.apply(bean), beanName);
+ return super.postProcessBeforeInitialization(ClientProxy.unwrap(bean), beanName);
}
}