Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
jstransformer/com.tealium.prism.jstransformer/JavaScriptTransformerFactory

JavaScriptTransformerFactory

abstract class JavaScriptTransformerFactory(adapterProvider: (TealiumContext) -> JavaScriptEngineAdapter) : ModuleFactory

Factory responsible for creating and configuring the JavaScriptTransformer module.

Subclasses must provide an adapterProvider that supplies a JavaScriptEngineAdapter for the given TealiumContext. If the adapter fails to initialize, the factory logs a warning and returns null, preventing the module from being registered.

This factory is always enforced and cannot be disabled.

Constructors

JavaScriptTransformerFactory
Link copied to clipboard
constructor(adapterProvider: (TealiumContext) -> JavaScriptEngineAdapter)

Types

Companion
Link copied to clipboard
object Companion

Properties

allowsMultipleInstances
Link copied to clipboard
open val allowsMultipleInstances: Boolean
moduleType
Link copied to clipboard
open override val moduleType: String

Functions

canBeDisabled
Link copied to clipboard
open override fun canBeDisabled(): Boolean
create
Link copied to clipboard
open override fun create(moduleId: String, context: TealiumContext, configuration: DataObject): Module?
getEnforcedSettings
Link copied to clipboard
open override fun getEnforcedSettings(): List<DataObject>
Generated by Dokka
(c) Tealium 2026