[
https://issues.apache.org/jira/browse/CAMEL-21034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870990#comment-17870990
]
Claude Mamo commented on CAMEL-21034:
-------------------------------------
So far it's only for prototyping purposes but I'm customising the route
reifier to add a dummy output when none are defined on the route. Camel
complains when a route consists of only a _from(...)_ but this is might be a
legitimate use case when the endpoint is a kamelet.
> DefaultInjector created instead of SpringInjector when using custom
> ModelReifierFactory in Spring Boot app
> ----------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-21034
> URL: https://issues.apache.org/jira/browse/CAMEL-21034
> Project: Camel
> Issue Type: Bug
> Components: came-core, camel-spring-boot
> Affects Versions: 4.6.0
> Environment: Spring Boot
> Reporter: Claude Mamo
> Priority: Minor
> Attachments: call-stack.txt
>
>
> I'm referencing a custom model reifier factory in
> _META-INF/services/org/apache/camel/model-reifier-factory_ which is causing
> DefaultInjector to be used instead of the expected SpringInjector.
> SpringCamelContext creates the injector when loading a custom
> ModelReifierFactory. SpringInjector requires the application context, but
> since the application context hasn't yet been set on SpringCamelContext, the
> SpringInjector cannot be created so SpringCamelContext falls back to
> DefaultInjector. I've attached the call stack of this behaviour.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)