[
https://issues.apache.org/jira/browse/CAMEL-21140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-21140.
---------------------------------
Resolution: Fixed
> 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)