public abstract class TenantAwareLifecycleManager extends Object implements com.atlassian.sal.api.lifecycle.LifecycleManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
LifecycleAware
s have been run for each Tenant
.Constructor and Description |
---|
TenantAwareLifecycleManager(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.tenancy.api.TenantAccessor tenantAccessor,
ExecutorService executorService) |
Modifier and Type | Method and 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() |
public TenantAwareLifecycleManager(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.tenancy.api.TenantAccessor tenantAccessor, ExecutorService executorService)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void onPluginFrameworkStarted(com.atlassian.plugin.event.events.PluginFrameworkStartedEvent event)
@EventListener public void onSetupComplete(SetupCompleteEvent event)
@EventListener public void onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
public void onLifecycleExport(org.osgi.framework.ServiceReference lifecycleReference)
public boolean isApplicationSetUp()
isApplicationSetUp
in interface com.atlassian.sal.api.lifecycle.LifecycleManager
public void start()
start
in interface com.atlassian.sal.api.lifecycle.LifecycleManager
public void setLifecycleReferences(List<org.osgi.framework.ServiceReference> lifecycleReferences)
protected abstract ServiceExecutionStrategy<com.atlassian.sal.api.lifecycle.LifecycleAware> createServiceExecutionStrategy()
Copyright © 2003–2021 Atlassian. All rights reserved.