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

Servlets should be able to use @Inject

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD