Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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.
Attachments
Issue Links
- relates to
-
CAMEL-21137 camel-core - Add lazy option to @BindToRegistry
- Resolved
-
CAMEL-21141 camel-core- Add lazy to beans in yaml/xml DSL
- Resolved