There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-fc5ab083-d287-4c99-85fc-d3d96945c8f3 XWIKI-8075 Open

StyleSheetExtension not registered when imported after its author in the same XAR

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-c29a024d-1193-4b5d-8a7f-aa36745ab3ac Thomas Mortagne on 08/Aug/24 16:54
 
There is already import related events (wiki macro module is listening to it for this exact reason) but it's not good to listen to them for things that don't have anything to do with import.

We could also stack the events and release them when the import is done. That's what Extension Manager does for component registration events when
installed installing a JAR extension , for example. All theses listener these listeners have to listen to document event events anyway , so better having them only listen to that instead of forcing them to have to take care of some special event that they should not care about.