Package org.apache.tapestry5.services.javascript

## Interface ModuleConfigurationCallback

-     public interface ModuleConfigurationCallback

  Used to change the configuration object which will be used to configure RequireJS; callbacks can modify and override the configuration after it was created by the `ModuleManager` service based on contributed `JavaScriptModuleConfiguration`s. This allows components, pages, mixins and services to configure Require.JS dynamically in a per-request basis by using the `JavaScriptSupport.addModuleConfigurationCallback(ModuleConfigurationCallback)` method. Note that RequireJS is only configured during a full page render; on Ajax requests, RequireJS will already be loaded and configured.
  Since:
    5.4
  See Also:
    `JavaScriptSupport.addModuleConfigurationCallback(ModuleConfigurationCallback)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | `configure​(JSONObject configuration)` | Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.

- - ### Method Detail

    - #### configure

          JSONObject configure​(JSONObject configuration)

      Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.
      Parameters:
        `configuration` - a `JSONObject` containing the current configuration.
      Returns:
        a `JSONObject` containing the changed configuration, most probably the same one received as a parameter.