Issue Details (XML | Word | Printable)

Key: XWIKI-2318
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Sergiu Dumitriu
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Extend the XWikiPluginInterface with beginParsing and endParsing

Created: 21/Apr/08 17:24   Updated: 21/Apr/08 17:48
Component/s: APIs, Plugin - Other
Affects Version/s: None
Fix Version/s: 1.4 M2

Resolution Date: 21/Apr/08 17:25


 Description  « Hide
The plugins should be able to receive some kind of hooks/notifications when a response is being generated, by implementing beginParsing and endParsing, called before and after the template responsible for generating the response is parsed, in com.xpn.xwiki.web.Utils#parseTemplate.

beginParsing could be used to perform request-specific initialization, and endParsing could be used to cleanup request-specific objects or to alter the resulting string.

Although Utils#parseTemplate is not the best place to call these methods, the current structure of the rendering process does not allow a better place.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Sergiu Dumitriu added a comment - 21/Apr/08 17:25
Done in rev. 9258