[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods
lburgazzoli commented on issue #1422: URL: https://github.com/apache/camel-k/issues/1422#issuecomment-617972080 definitely not an easy task unless we want to re-implement cdi/spring :) so I think binding properties using the parameters is a slightly better option to reduce issue due to ordering This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods
lburgazzoli commented on issue #1422: URL: https://github.com/apache/camel-k/issues/1422#issuecomment-617959068 I’m trying to look at if it is possible but as the class is compiled at runtime it may be tricky, however the route is subject to the bean post processor so I think it could be an ordering issue This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods
lburgazzoli commented on issue #1422: URL: https://github.com/apache/camel-k/issues/1422#issuecomment-617871836 You probably need to use `@PropertyInject` as: ```java @BindToRegistry public Object someBean(@PropertyInject("foo" String foo) ) { System.out.println("someBean: " + foo); return foo; } ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org