Interface ConfigFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PRIORITY
      Default priority of the filter if registered by Config.Builder automatically.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      String apply​(Config.Key key, String stringValue)
      Filters an elementary config value before it is made available to the application via the Config API.
      default void init​(Config config)
      Initializes the filter using the Config instance which the filter will affect once Config.Builder.build completes.
    • Method Detail

      • apply

        String apply​(Config.Key key,
                     String stringValue)
        Filters an elementary config value before it is made available to the application via the Config API.
        Parameters:
        key - configuration key associated with the Config node
        stringValue - original value to be filtered, never null
        Returns:
        original value or filtered (changed) value, never null
      • init

        default void init​(Config config)
        Initializes the filter using the Config instance which the filter will affect once Config.Builder.build completes.

        The config system propagates any thrown exception to the application so its invocation of Config.Builder#build fails.

        Parameters:
        config - Config instance under construction