public final class DatabaseDirectoryAwareActiveObjectsFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LOCK_TIMEOUT_SECONDS |
protected org.slf4j.Logger |
logger |
protected com.atlassian.sal.api.transaction.TransactionTemplate |
transactionTemplate |
| Constructor and Description |
|---|
DatabaseDirectoryAwareActiveObjectsFactory(ActiveObjectUpgradeManager aoUpgradeManager,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
ActiveObjectsPluginConfiguration dbConfiguration,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate,
com.atlassian.beehive.ClusterLockService clusterLockService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ActiveObjectsConfiguration configuration)
Tells whether the give data source type is supported by this factory, users should call this method before
calling
ActiveObjectsFactory.create(ActiveObjectsConfiguration, Tenant) to avoid an IllegalStateException being
thrown. |
ActiveObjects |
create(ActiveObjectsConfiguration configuration,
com.atlassian.tenancy.api.Tenant tenant)
Creates a new instance of
ActiveObjects each time it is called. |
protected ActiveObjects |
doCreate(ActiveObjectsConfiguration configuration,
com.atlassian.tenancy.api.Tenant tenant)
This has the same contract as
create(ActiveObjectsConfiguration, com.atlassian.tenancy.api.Tenant)
except that checking the configuration type has already been taken care of. |
protected final org.slf4j.Logger logger
protected static final int LOCK_TIMEOUT_SECONDS
protected final com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate
public DatabaseDirectoryAwareActiveObjectsFactory(ActiveObjectUpgradeManager aoUpgradeManager, com.atlassian.sal.api.ApplicationProperties applicationProperties, ActiveObjectsPluginConfiguration dbConfiguration, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.beehive.ClusterLockService clusterLockService)
protected ActiveObjects doCreate(ActiveObjectsConfiguration configuration, com.atlassian.tenancy.api.Tenant tenant)
create(ActiveObjectsConfiguration, com.atlassian.tenancy.api.Tenant)
except that checking the configuration type has already been taken care of.configuration - the configuration to work withActiveObjectspublic final boolean accept(ActiveObjectsConfiguration configuration)
ActiveObjectsFactoryActiveObjectsFactory.create(ActiveObjectsConfiguration, Tenant) to avoid an IllegalStateException being
thrown.accept in interface ActiveObjectsFactoryconfiguration - the configuration of active objectstrue if the configuration is supported.public final ActiveObjects create(ActiveObjectsConfiguration configuration, com.atlassian.tenancy.api.Tenant tenant)
ActiveObjectsFactoryActiveObjects each time it is called.create in interface ActiveObjectsFactoryconfiguration - th configuration of active objectstenant - against which to createActiveObjectsActiveObjectsFactory.accept(ActiveObjectsConfiguration)Copyright © 2018 Atlassian. All rights reserved.