Fabric3
  1. Fabric3
  2. FABRICTHREE-238

InjectionSite mapping should support multiple potential sites

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.5
    • Fix Version/s: None
    • Component/s: Fabric
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently we only support a single injection site for each injectable attribute. However, in general, there may be multiple potential sites: for example, the attribute could be mapped to two setters with the same attribute name (e.g. same name in @Property), or it could be mapped to a constructor parameter and also to a setter (to allow for reinjection).

      To support this, InjectingComponentType should be refactored to allow for multiple injection sites. It would then be the responsibility of the generator to select which sites should be used for construction, initial injection, and reinjection.

        Activity

        Hide
        Jim Marino added a comment -

        There really isn't a use case for this.

        Show
        Jim Marino added a comment - There really isn't a use case for this.

          People

          • Assignee:
            Jim Marino
            Reporter:
            Jeremy Boynes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: