IviThemeRegistrySourceConfig

data class IviThemeRegistrySourceConfig(val registrySourceBuilderName: String, val implementationModule: ModuleReference, val subPackageName: String? = null, val dependencies: IviServiceDependencies = IviServiceDependencies())

Defines the reference to an IviThemeRegistrySource implementation and how to configure it.

Parameters

registrySourceBuilderName

The name of the IviThemeRegistrySourceBuilder class.

The name must be formatted in PascalCase and must end with the RegistrySourceBuilder suffix. The RegistrySourceBuilder suffix is mandatory to make it easier for developers to find where the class is used in the code base.

The name needs to match a class with the same name that implements the com.tomtom.ivi.platform.theming.api.common.registry.IviThemeRegistrySourceBuilder interface.

implementationModule

The module that contains the class that implements the com.tomtom.ivi.platform.theming.api.common.registry.IviThemeRegistrySourceBuilder interface.

The package name of the class is obtained from this ModuleReference. If the class resides in a sub package within this module, the sub package can be provided through subPackageName. This subPackageName is appended to the package name of the module, with a period in between.

subPackageName

Optional sub package. If not null, this value is appended to the ModuleReference.packageName of the implementationModule property with a period in between.

dependencies

IVI service dependencies of the IviThemeRegistrySource implementation. An IviThemeRegistrySource implementation can require other IVI service interfaces to be registered. This allows misconfiguration to be detected at build time.

Constructors

Link copied to clipboard
constructor(registrySourceBuilderName: String, implementationModule: ModuleReference, subPackageName: String? = null, dependencies: IviServiceDependencies = IviServiceDependencies())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val subPackageName: String? = null

Functions

Link copied to clipboard
fun copyAndAdd(dependencies: IviServiceDependencies = IviServiceDependencies()): IviThemeRegistrySourceConfig

Copies this IviThemeRegistrySourceConfig, adds the given dependencies to the copied instance, and returns it.