Component instance may be stopped at any point of Tigase XMPP Server runtime, ie. due to reconfiguration, or due to server graceful shutdown.
In both cases following methods of a component will be called:
- void stop() - first method stops component internal processing queues.
- void beforeUnregister() (optional) - if component implements @UnregisterAware@ interface this method is called to notify instance of a component that it is being unloaded.
- void unregister(Kernel kernel) (optional) - if component implements
RegistrarBean
called to give component a way to unregister beans (if needed).