Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4370

GuiceComponentProvider should not test for explicit bindings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Neutral Neutral
    • None
    • 4.5, 4.5.1, 4.5.2
    • core

      GuiceComponentProvider tests for explicit bindings in both getComponent() and getProvider(). Since we don't have Guice set to require explicit bindings and since we're using just-in-time creation of objects it makes no sense to do this check.

      For instance, a class A annotated with @Singleton can be injected into another class B that requires it. But it's not possible to ask for the instance of class A directly on GuiceComponentProvider.

        Acceptance criteria

              Unassigned Unassigned
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: