Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Implemented
-
2.21.1
-
None
-
Unknown
Description
Up to this documentation page, I got the impression that following code snippet:
@Bean public static Registry createMyApplicationContextRegistry(ApplicationContext applicationContext) { return new MyApplicationContextRegistry(applicationContext); }
in my Spring Application.java startup class should override the default ApplicationContextRegistry used.
This does NOT work in my case. What works is annotating (with @Bean) my custom SpringCamelContext extension, which then overrides the createRegistry method.