JSONConfiguration
class in package klyn.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 | mappedTypes `mappedTypes as IList<Type>:` | Entity types contributed directly by this configuration.
public readonly property | path `path as FilePath` | JSON document path.
public readonly property | providerName `providerName as String:` | Stable provider family name.

Inherited Properties
property Inherited Properties from ProviderConfiguration: mappedTypes, providerName
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | JSONConfiguration `JSONConfiguration(path as Path):` | Creates a configuration from a filesystem path.
public | JSONConfiguration `JSONConfiguration(path as String):` | Creates a configuration from a string path.