Re: Sling Model AdapterFactory - iterating all injectors?

2022-06-22 Thread Jörg Hoh
Hi Konrad, Yes, making it more explicit what injector you expect should help here, I raised https://issues.apache.org/jira/browse/SLING-11403 . But even then we will never get rid of the @Inject annotation, people will still use it. Not to mention the amount of sling models written over the last

Re: Sling Model AdapterFactory - iterating all injectors?

2022-06-22 Thread Konrad Windszus
Hi, Shouldn’t we instead just more prominently promote injector-specific annotations (https://sling.apache.org/documentation/bundles/models.html#injector-specific-annotations )? IMHO this should be fixed

Sling Model AdapterFactory - iterating all injectors?

2022-06-22 Thread Jörg Hoh
Hi, While investigating some weirdness in custom Sling Model Injectors I came across, that a SlingModel triggerd the invocation of the prepare() method of a totally unrelated Injector, which implements the ValuePreparer interface. I found that if no injector is given in the annotation [1] all