ConfigurationBuilder

A builder class for creating a Configuration object.

This class provides methods for setting various properties of a configuration, such as the default language, the scripting enabled flag, the globals, the plugins, and the sources. It also provides methods for applying custom initializers to some of these properties. The build method returns a new Configuration object based on the current state of the builder.

Author

TOTHTOMI

Since

Jul. 25, 2023

Constructors

Link copied to clipboard
constructor()

Creates a new ConfigurationBuilder with default values for all properties.

Functions

Link copied to clipboard

Builds and returns a new Configuration object based on the current state of the builder.

Link copied to clipboard
fun defaultLanguage(language: String)

Sets the default language property of the configuration.

Link copied to clipboard

Sets the plugin management property of the configuration using a custom initializer.

Link copied to clipboard

Sets the source management property of the configuration using a custom initializer.

Link copied to clipboard

Sets the globals property of the configuration using a custom initializer.

Link copied to clipboard

Sets the scripting enabled flag of the configuration.