Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2318

Extend the XWikiPluginInterface with beginParsing and endParsing

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: