Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-528

@Inject for ServiceLoader is not triggered for fallback implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR3
    • 1.0.0.CR2
    • Base Implementation
    • None

      The serviceLoader injects values in all created classes. However, for the following:

      service.onlyOne(TheClass.class, TheClassDefault.class)
      

      if no implementation of TheClass is found, it instantiates TheClassDefault. This instance will not get its field injected.

              aslak@redhat.com Aslak Knutsen
              kpiwko Karel Piwko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: