Skip to main content
October 4, 2017
Répondu

Sling Models: injection strategy for custom injectors

Hi everyone,

I have encountered some interesting thing in Sling. I have this model, for example ExampleModel.java · GitHub.

I set defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL for this model, and create field marked as @ChildResource. And this field leave required in spite of this.

My question is this bug or feature?)))

Ce sujet a été fermé aux réponses.
Meilleure réponse par smacdonald2008

For @ChldResource - is the node a child or grandchild node as   discussed here:

Apache Sling :: Sling Models

see under the Collections heading.

1 commentaire

smacdonald2008
Level 10
October 4, 2017

For @ChldResource - is the node a child or grandchild node as   discussed here:

Apache Sling :: Sling Models

see under the Collections heading.