com.atlassian.sal.confluence.lifecycle
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 which LifecycleAware
s have been run for each Tenant
.
- Since:
- 5.6
Constructor Summary |
TenantAwareLifecycleManager(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.tenancy.api.TenantAccessor tenantAccessor,
ExecutorService executorService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TenantAwareLifecycleManager
public TenantAwareLifecycleManager(com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.tenancy.api.TenantAccessor tenantAccessor,
ExecutorService executorService)
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()
Copyright © 2003–2015 Atlassian. All rights reserved.