Class ModuleConfig
java.lang.Object
ortus.boxlang.runtime.config.segments.ModuleConfig
- All Implemented Interfaces:
IConfigSegment
A BoxLang module configuration from the boxlang.json
This is a configuration segment for a module
Each module configuration has the following properties:
- name: The name of the module
- enabled: Whether the module is enabled or not
- settings: The settings for the module as a struct
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasStruct()Returns the configuration as a structProcesses the state of the configuration segment from the configuration struct.
-
Field Details
-
name
The name of the module -
disabled
Whether the module is disabled or not -
settings
The settings for the module as a struct
-
-
Constructor Details
-
ModuleConfig
Default constructor- Parameters:
name- The name of the module
-
-
Method Details
-
process
Processes the state of the configuration segment from the configuration struct.Each segment is processed individually from the initial configuration struct. This is so we can handle cascading overrides from configuration loading.
- Specified by:
processin interfaceIConfigSegment- Parameters:
config- The state of the segment as a struct- Returns:
- Return itself for chaining
-
asStruct
Returns the configuration as a struct- Specified by:
asStructin interfaceIConfigSegment- Returns:
- A struct representation of the configuration segment
-