[MAGNOLIA-5999] Rendering listeners: performance improvements Created: 25/Nov/14  Updated: 07/Jan/15  Resolved: 01/Dec/14

Status: Closed
Project: Magnolia
Component/s: rendering
Affects Version/s: 5.4
Fix Version/s: 5.4

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-5839 Revise implementation of Rendering Li... Closed
dependency
is depended upon by MAGNOLIA-6000 Implement a rendering listener which ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: DPC

 Description   
  • Use enumeration instead of Strings for listeners return codes.
  • Add ResponseContentTypeVoter by default set to text/html to skip processing of all other requests.
  • Instruct rendering engine to don't add listeners if init method returns skipListener. info.magnolia.rendering.engine.DefaultRenderingEngine.initListeners(OutputProvider): listener are not cleaned. That causes listeners duplication when dispatching requests.


 Comments   
Comment by Roman Kovařík [ 10/Dec/14 ]

Ready for review on the branch MAGNOLIA-5999-squashed

Generated at Mon Feb 12 04:10:22 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.