[ https://issues.apache.org/jira/browse/CAMEL-21140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877685#comment-17877685 ]
Claus Ibsen edited comment on CAMEL-21140 at 8/30/24 1:09 PM: -------------------------------------------------------------- TODO: init/destroy on BindToRegistry *DONE* TODO: auto detect destroy methods like spring does with naming close / shutdown *DONE* TODO: camel service beans to auto init/destroy *DONE* TODO: lazy = true should we also support init/destroy methods was (Author: davsclaus): TODO: init/destroy on BindToRegistry *DONE* TODO: auto detect destroy methods like spring does with naming close / shutdown TODO: camel service beans to auto init/destroy *DONE* TODO: lazy = true should we also support init/destroy methods > camel-core - Add init and destroy method to @BindToRegistry > ----------------------------------------------------------- > > Key: CAMEL-21140 > URL: https://issues.apache.org/jira/browse/CAMEL-21140 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Major > Fix For: 4.8.0 > > > You may want to just create a class and have it automatic register with id, > and then also have lifecycle methods invoked. > We have init and destroy methods on beans created in yaml/xml DSL. > We can also consider if the class is a Camel `org.apache.camel.Service` then > it would automatic use this for init / destroy methods so users can rely on > this. -- This message was sent by Atlassian Jira (v8.20.10#820010)