You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/08/29 14:17:17 UTC
(camel) 03/06: CAMEL-21140: camel-core - Add init/destroy method support for registry bind
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch init-destroy
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9805f9a709b2cfabb7cbcf4c3805eb11b248fe7a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Aug 29 13:38:02 2024 +0200
CAMEL-21140: camel-core - Add init/destroy method support for registry bind
---
.../main/java/org/apache/camel/component/consul/ConsulRegistry.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulRegistry.java b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulRegistry.java
index fa827cac44d..7890894fb59 100644
--- a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulRegistry.java
+++ b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulRegistry.java
@@ -160,6 +160,11 @@ public class ConsulRegistry implements Registry {
put(id, bean);
}
+ @Override
+ public void bind(String id, Class<?> type, Object bean, String initMethod, String destroyMethod) throws RuntimeCamelException {
+ throw new UnsupportedOperationException("Binding with init/destroy method not supported");
+ }
+
@Override
public void bind(String id, Class<?> type, Supplier<Object> bean) throws RuntimeCamelException {
throw new UnsupportedOperationException("Binding with supplier not supported");