[MAGNOLIA-5001] Listeners for execution of actions before/after each call of renderer - port to master Created: 30/Apr/13  Updated: 26/Jun/13  Resolved: 06/May/13

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

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:
Cloners
clones MAGNOLIA-4990 Rendering listeners - 4.5 Closed
dependency
is depended upon by MAGNOLIA-5002 Direct area rendering - port to master 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)

 Description   

We need some logic to be done before/after call of renderer for direct area rendering implementation. Although we have tried several places where it can be done, we agreed on usage of listeners, see DAR review II.
Such set of listeners is called before/after every call of render and we can reuse listeners in the future for different purposes (for example push/pop actions can be called in appropriate listeners).

  • Register such listener in rendering engine config (RenderingContext).
  • New instance of such listener per request.
  • Registering of multiple listeners is possible.
  • Listener is registered and instantiated by rendering engine and passed into rend. context.


 Comments   
Comment by Roman Kovařík [ 03/May/13 ]

Related commits (missing issue name in commits):
https://git.magnolia-cms.com/gitweb/?p=magnolia_main.git;a=commitdiff;h=0987e0fd1deeb8de302168e01da8c491f6d61d38
https://git.magnolia-cms.com/gitweb/?p=magnolia_main.git;a=commitdiff;h=0139aaa84623f351cd7915ba64685c018318d279
https://git.magnolia-cms.com/gitweb/?p=magnolia_main.git;a=commitdiff;h=22fd3e063f78e6c65a227ae66c313ff0c973a345

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