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

addServiceProvider should add class to archive

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • 1.0.0-beta-3
    • 1.0.0-alpha-11
    • api
    • None
    • 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

            ddalto@redhat.com Davide D'Alto (Inactive)
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: