简体   繁体   中英

initialize java library after installing as extension in XWIki

We have designed a listener for XWiki in java and are installing it using the extension manager. Is there any code that's run on install? We would like to register the listener immediately and not wait for the first instantiation of the component.

The XWiki version is 6.4.7.

Any help is appreciated.

You could listen to Component descriptor registration events in another listener. For example ComponentDescriptorAddedEvent .

See also http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HComponentEvents for a bit more details.

如果您的侦听器是Java组件(如在实现org.xwiki.observation.EventListener的组件中),则会立即注册它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM