Class ImportFinishedListener

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class ImportFinishedListener
    extends Object
    implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    This class listens for ImportFinishedEvent and triggers plugin upgrades when site import has been performed.
    Since:
    5.3
    • Constructor Detail

      • ImportFinishedListener

        public ImportFinishedListener​(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                                      com.atlassian.sal.api.upgrade.PluginUpgradeManager pluginUpgradeManager)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • onImportFinishedEvent

        @EventListener
        public void onImportFinishedEvent​(ImportFinishedEvent event)
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception