[
https://issues.apache.org/jira/browse/SLING-3696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Edelson resolved SLING-3696.
-----------------------------------
Resolution: Fixed
supported added in r1605150
done by adding defaultInjectionStrategy = OPTIONAL to the @Model annotation.
Where necessary, an @Required annotation can be used to declare a field/method
as required.
> Allow a model class to be annotated so that by default injections are optional
> ------------------------------------------------------------------------------
>
> Key: SLING-3696
> URL: https://issues.apache.org/jira/browse/SLING-3696
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Justin Edelson
> Assignee: Justin Edelson
> Labels: models
> Fix For: Sling Models Implementation 1.0.6
>
>
> By default, injections are required and individual injections can be declared
> as optional. It should be possible to flip this - the default being optional
> and individual injections can be required.
--
This message was sent by Atlassian JIRA
(v6.2#6252)