public final class DelegatingActiveObjectsFactory extends Object implements ActiveObjectsFactory
| Constructor and Description |
|---|
DelegatingActiveObjectsFactory(Collection<ActiveObjectsFactory> factories) |
| 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. |
public DelegatingActiveObjectsFactory(Collection<ActiveObjectsFactory> factories)
public 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 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.