public class DefaultTenantManager extends Object implements TenantManager
Constructor and Description |
---|
DefaultTenantManager(ApplicationProperties applicationProperties,
TenancyCondition tenancyCondition,
JiraTenantAccessor jiraTenantAccessor) |
Modifier and Type | Method and Description |
---|---|
void |
afterInstantiation() |
void |
doNowOrWhenTenantArrives(Runnable runnable,
String description)
Run this function immediately if there is a tenant.
|
boolean |
isTenanted() |
ServiceResult |
tenantArrived()
Called when a tenant arrives via DefaultLandlordRequests
|
public DefaultTenantManager(ApplicationProperties applicationProperties, TenancyCondition tenancyCondition, JiraTenantAccessor jiraTenantAccessor)
public void doNowOrWhenTenantArrives(Runnable runnable, String description)
TenantManager
doNowOrWhenTenantArrives
in interface TenantManager
runnable
- the function to rundescription
- description of the functionpublic ServiceResult tenantArrived()
TenantManager
tenantArrived
in interface TenantManager
public boolean isTenanted()
isTenanted
in interface TenantManager
public void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
Copyright © 2002-2016 Atlassian. All Rights Reserved.