[ 
https://issues.apache.org/jira/browse/SLING-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Sedding resolved SLING-10537.
------------------------------------
    Resolution: Fixed

Implemented in [commit 
9200524|https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-junit-core.git;a=commit;h=9200524516e3c66289a9fac8ff5f4a5ec5b09afb].

> @Service annotation for Jupiter should explicitly allow for optional and 
> mandatory service injection
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SLING-10537
>                 URL: https://issues.apache.org/jira/browse/SLING-10537
>             Project: Sling
>          Issue Type: Improvement
>          Components: JUnit Core, Testing
>    Affects Versions: JUnit Core 1.1.4
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Minor
>
> The @Service annotation for Jupiter is currently mandatory for unary service 
> injection and optional for multiple service injection. It should be possible 
> to specify that a unary service is optional, leading to {{null}} being 
> injected. It should also be possible to specify mandatory multiple service 
> injection, leading to "at least one" semantics. This should fail parameter 
> injection if no suitable service is available.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to