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

addServiceProvider should add class to archive

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.0-beta-3
    • 1.0.0-alpha-11
    • api
    • None
    • Low

      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)

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

                Created:
                Updated:
                Resolved: