QueryConfigHandler

This class can be used to hold any query configuration and no field configuration. For field configuration, it creates an empty FieldConfig object and delegate it to field config listeners, these are responsible for setting up all the field configuration.

QueryConfigHandler should be extended by classes that intend to provide configuration to QueryNodeProcessor objects.

The class that extends QueryConfigHandler should also provide FieldConfig objects for each collection field.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a listener. The added listeners are called in the order they are added.

Link copied to clipboard
fun <T> get(key: ConfigurationKey<T>): T?

Returns the value held by the given key.

Link copied to clipboard
open fun getFieldConfig(fieldName: String): FieldConfig?

Returns an implementation of FieldConfig for a specific field name. If the implemented QueryConfigHandler does not know a specific field name, it may return null, indicating there is no configuration for that field.

Link copied to clipboard

Returns true if there is a value set with the given key, otherwise false.

Link copied to clipboard
fun <T> set(key: ConfigurationKey<T>, value: T?)

Sets a key and its value.

Link copied to clipboard

Unsets the given key and its value.