[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods

2020-04-22 Thread GitBox
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

[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods

2020-04-22 Thread GitBox
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

[GitHub] [camel-k] lburgazzoli commented on issue #1422: @PropertyInject does not work in @BindToRegistry methods

2020-04-22 Thread GitBox
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) ) {