Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1041

Errai always generates factories for native JS types that are injectable, even if they are not used

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.CR3
    • Fix Version/s: 4.0.0.Final
    • Component/s: ErraiIOC
    • Labels:
      None

      Description

      Normally Errai generates a factory for a bean when one of two conditions is met: the bean is injected somewhere, or the bean has CDI annotations.

      The rational for the second criterion is that CDI annotated beans can be dynamically looked up at runtime even if they have no individual injection sites.

      But native JS types cannot be looked up dynamically (at present) because they do not have Class objects at runtime. Thus (at least at present) it doesn't make sense to have factories generated for native JS types that do not have static injection sites.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                mbarkley Max Barkley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: