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

Julian Sedding updated SLING-10537:
-----------------------------------
    Fix Version/s: JUnit Core 1.1.6

> @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
>             Fix For: JUnit Core 1.1.6
>
>
> 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