BarrierFactory
public protocol BarrierFactory<BarrierType>
The [BarrierFactory] is responsible for creating new [ConfigurableBarrier] instances.
-
The specific
ConfigurableBarrierthat this factory can create.Declaration
Swift
associatedtype BarrierType : ConfigurableBarrier -
An optional set of default
BarrierScopeto use in the event that these are not configured in any settings sources.In the case that no settings are found, and no default is available, then
BarrierScope.allwill be used. Therefore applying badly configuredBarrierimplementations to allDispatchersDeclaration
Swift
func defaultScopes() -> [BarrierScope] -
Creates a
ConfigurableBarrierinstance using the givencontextandconfiguration.Declaration
Swift
func create(context: TealiumContext, configuration: DataObject) -> BarrierType -
getEnforcedSettings()Default implementationReturns some optional settings for this barrier that override any other Local or Remote settings fields.
Only the values at the specific keys returned in this Dictionary will be enforced and remain constant during the life of this
Barrier. Other values at other keys that are not present in this Dictionary can be set by Local or Remote settings and be updated by future Remote settings refreshes during the life of thisBarrier.Default Implementation
Declaration
Swift
func getEnforcedSettings() -> DataObjectReturn Value
A
DataObjectrepresenting theBarrierSettings, containing some of the settings used by theBarrierthat will be enforced and remain constant during the life of thisBarrier.
View on GitHub