Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10537

@Service annotation for Jupiter should explicitly allow for optional and mandatory service injection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JUnit Core 1.1.2
    • JUnit Core 1.1.6
    • JUnit Core, Testing
    • None

    Description

      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.

      Attachments

        Activity

          People

            jsedding Julian Sedding
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: