In Camel CDI, the {{PropertiesComponent}} class extends an - abstract - *unproxyable* class in the upcoming Apache Camel version 2.17.
In that case, Weld proxies for the {{PropertiesComponent}} do not extend {{PropertiesComponent}} anymore and only implement interfaces of the type closure. That break the client applications.
Note that it stills work with {{@Typed}}: {code} @Produces @Typed(PropertiesComponent.class) @ApplicationScoped @Named("properties") private static PropertiesComponent configuration() { Properties properties = new Properties(); properties.put("property", "value"); PropertiesComponent component = new PropertiesComponent(); component.setInitialProperties(properties); return component; } {code}
Note that it works as well with Weld 1.x.
|