Class ModuleConfig

java.lang.Object
ortus.boxlang.runtime.config.segments.ModuleConfig
All Implemented Interfaces:
IConfigSegment

public class ModuleConfig extends Object implements 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 Details

    • name

      public String name
      The name of the module
    • disabled

      public Boolean disabled
      Whether the module is disabled or not
    • settings

      public IStruct settings
      The settings for the module as a struct
  • Constructor Details

    • ModuleConfig

      public ModuleConfig(String name)
      Default constructor
      Parameters:
      name - The name of the module
  • Method Details

    • process

      public ModuleConfig process(IStruct config)
      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:
      process in interface IConfigSegment
      Parameters:
      config - The state of the segment as a struct
      Returns:
      Return itself for chaining
    • asStruct

      public IStruct asStruct()
      Returns the configuration as a struct
      Specified by:
      asStruct in interface IConfigSegment
      Returns:
      A struct representation of the configuration segment