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

Servlets should be able to use @Inject

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.1
    • 4.5.2
    • core
    • None
    • Yes

    Description

      A servlet currently can't benefit from IoC, because ServletDispatchingFilter instantiates the servlet with Classes.newInstance(servletClass). One way around this would be to have ComponentProvider injected in ServletDispatchingFilter, and have ServletDispatchingFilter thus call ComponentProvider.newInstance instead.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD