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 theModuleManager
service based on contributedJavaScriptModuleConfiguration
s. This allows components, pages, mixins and services to configure Require.JS dynamically in a per-request basis by using theJavaScriptSupport.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
- aJSONObject
containing the current configuration.- Returns:
- a
JSONObject
containing the changed configuration, most probably the same one received as a parameter.
-
-