Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-240

addServiceProvider should add class to archive

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.0.0-alpha-11
    • Fix Version/s: 1.0.0-beta-3
    • Component/s: api
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      My intuition tells me that addServiceProvider should add the service provider classes I specify to the archive. To my surprise, it does not. I can't see any scenario in which you specify a service provider for a class that isn't in the archive. For the edge case, you could always extract it manually after the call to addServiceProvider.

      Currently:
      addClass(MyServiceImpl.class).addServiceProvider(Service.class, MyServiceImpl.class)

      Proposed:
      addServiceProvider(Service.class, MyServiceImpl.class)

        Attachments

          Activity

            People

            Assignee:
            davided80 Davide D'Alto (Inactive)
            Reporter:
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: