1. I'm implementing custom xwiki plugin installations without user interaction in java (I planned to do it with REST API, but after testing I have found it's not so convenient as java code). I use the following:
ExtensionManagerScriptService manager = (ExtensionManagerScriptService)Utils.getComponent(ScriptService.class, "extension"); InstalledExtensionScriptService installed = (InstalledExtensionScriptService)Utils.getComponent(ScriptService.class, "extension.installed"); The problem is that I do it in my custom auth module when user logins into system. I do this check only once but it smells for 2 reasons: Utils.getComponent method is deprecated and I think there is an entry point which I can override to run my code on xwiki start. Could you propose any solution for this? I have also concern about xwiki start: I use Jetty and every time I start xwiki I see a message "xwiki is loading..." and percent counter. It seems that xwiki loads only for the first request. Is it true? Can I change the behaviour? -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-run-custom-code-on-xwiki-start-in-java-code-tp7598537.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

