Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Sling Models Implementation 1.0.6
-
None
Description
The default injection strategy (being implemented in SLING-3696) is only considered, in case there is no injector-specific annotation being used.
Otherwise it is just ignored.
The logic should be like this:
if annotationProcessor.isOptional() returns null
-> the default injection strategy should be used
in any other case the boolean value should be used.
Attachments
Issue Links
- is related to
-
SLING-7187 Use of Injector-specific annotation and @Optional results in required-value
- Closed
- relates to
-
SLING-3696 Allow a model class to be annotated so that by default injections are optional
- Closed