Class TenantAwareLifecycleManager

  • All Implemented Interfaces:
    com.atlassian.sal.api.lifecycle.LifecycleManager, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public abstract class TenantAwareLifecycleManager
    extends Object
    implements com.atlassian.sal.api.lifecycle.LifecycleManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    Keeps track of which LifecycleAwares have been run for each Tenant.
    Since:
    5.6
    • Constructor Detail

      • TenantAwareLifecycleManager

        public TenantAwareLifecycleManager​(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager,
                                           com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                                           com.atlassian.tenancy.api.TenantAccessor tenantAccessor,
                                           ExecutorService executorService)
    • Method Detail

      • afterPropertiesSet

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

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

        public void onPluginFrameworkStarted​(com.atlassian.plugin.event.events.PluginFrameworkStartedEvent event)
      • onSetupComplete

        @EventListener
        public void onSetupComplete​(SetupCompleteEvent event)
      • onTenantArrived

        @EventListener
        public void onTenantArrived​(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
      • onLifecycleExport

        public void onLifecycleExport​(org.osgi.framework.ServiceReference lifecycleReference)
      • isApplicationSetUp

        public boolean isApplicationSetUp()
        Specified by:
        isApplicationSetUp in interface com.atlassian.sal.api.lifecycle.LifecycleManager
      • start

        public void start()
        Specified by:
        start in interface com.atlassian.sal.api.lifecycle.LifecycleManager
      • setLifecycleReferences

        public void setLifecycleReferences​(List<org.osgi.framework.ServiceReference> lifecycleReferences)
      • createServiceExecutionStrategy

        protected abstract ServiceExecutionStrategy<com.atlassian.sal.api.lifecycle.LifecycleAware> createServiceExecutionStrategy()