Class TenantAwareLifecycleManager
- java.lang.Object
-
- com.atlassian.sal.confluence.lifecycle.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 whichLifecycleAware
s have been run for eachTenant
.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description TenantAwareLifecycleManager(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.tenancy.api.TenantAccessor tenantAccessor, ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
protected abstract ServiceExecutionStrategy<com.atlassian.sal.api.lifecycle.LifecycleAware>
createServiceExecutionStrategy()
void
destroy()
boolean
isApplicationSetUp()
void
onLifecycleExport(org.osgi.framework.ServiceReference lifecycleReference)
void
onPluginFrameworkStarted(com.atlassian.plugin.event.events.PluginFrameworkStartedEvent event)
void
onSetupComplete(SetupCompleteEvent event)
void
onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
void
setLifecycleReferences(List<org.osgi.framework.ServiceReference> lifecycleReferences)
void
start()
-
-
-
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 interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.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 interfacecom.atlassian.sal.api.lifecycle.LifecycleManager
-
start
public void start()
- Specified by:
start
in interfacecom.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()
-
-