This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push: new 53d1c15762 Avoid usage of deprecated ClientProxyUnwrapper 53d1c15762 is described below commit 53d1c157624c053b5bec5cb3d7d469942669eeec Author: James Netherton <jamesnether...@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); } }