public interface ModuleConfigurationCallback
ModuleManager service based on contributed JavaScriptModuleConfigurations.
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.JavaScriptSupport.addModuleConfigurationCallback(ModuleConfigurationCallback)| Modifier and Type | Method and Description |
|---|---|
JSONObject |
configure(JSONObject configuration)
Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.
|
JSONObject configure(JSONObject configuration)
configuration - a JSONObject containing the current configuration.JSONObject containing the changed configuration, most probably the same
one received as a parameter.5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.