Hi devs,
In order to fix
https://jira.xwiki.org/browse/XWIKI-8180 Extension
Manager XAR handler need to access some way a mandatory document as it
should be when it's "clean" so that It can then be used as previous
version in a 3 ways merge.
For that the idea is to introduce a new component based mandatory
documents initialization and refactor XWiki#initializeMandatoryClasses
to use it.
This new MandatoryDocumentInitializer would allow:
* provide a new mandatory document initializer from an extension since
XWiki#initializeMandatoryClasses would lookup all of them
* find a clean mandatory document state for a given document reference
in extension manager XAR handler since that's the role hint of those
components
You can find an example of what a XWikiPreferencesDocumentInitializer
would look like in
https://github.com/xwiki/xwiki-platform/tree/feature-standardclasses
branch.
WDYT ?
--
Thomas Mortagne