Servlets should be able to use @Inject
--------------------------------------
Key: MAGNOLIA-4396
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4396
Project: Magnolia
Issue Type: Improvement
Security Level: Public
Components: core
Affects Versions: 4.5.2
Reporter: Grégory Joseph
Assignee: Philipp Bärfuss
Fix For: 4.5.3, 4.5.x
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------