JSONConfiguration
classin packageklyn.data.json
public final class JSONConfiguration implements ProviderConfiguration:
JSONConfiguration
All Implemented Interfaces: ProviderConfiguration

Immutable configuration for one atomic JSON document source.

The concrete repository supplies its statically known entity and identity types. This configuration opens no file and is safe to reuse.

configuration = JSONConfiguration("catalog.json")
Properties
Modifier and Type Member Description
public readonly property indexes Typed persistent indexes rebuilt for each atomic source generation.
public readonly property path
path as FilePath
JSON document path.
public readonly property providerName
providerName as String:
Stable provider family name.
Inherited Properties
propertyInherited Properties from ProviderConfiguration: providerName
Constructors
Modifier and Type Member Description
public JSONConfiguration
JSONConfiguration( path as Path, indexes as IList<IndexRegistration> = [] ):
Creates a configuration from a filesystem path.
public JSONConfiguration
JSONConfiguration( path as String, indexes as IList<IndexRegistration> = [] ):
Creates a configuration from a string path.