public interface Initialization
JavaScriptSupport.require(String)
to allow additional, optional, details of the module-based page initialization
to be configured.Modifier and Type | Method and Description |
---|---|
Initialization |
invoke(String functionName)
Specifies the function to invoke.
|
Initialization |
priority(InitializationPriority priority)
Changes the initialization priority of the initialization from its default,
InitializationPriority.NORMAL . |
void |
with(Object... arguments)
Specifies the arguments to be passed to the function.
|
Initialization invoke(String functionName)
functionName
- name of a function exported by the module.Initialization priority(InitializationPriority priority)
InitializationPriority.NORMAL
.
Note: it is possible that this method may be removed before release 5.4 is final.priority
- new priorityvoid with(Object... arguments)
JSONObject
is passed. When multiple Initializations exist with the same function name (or no function name), and no arguments,
they are coalesced into a single Initialization: it is assumed that an initialization with no parameters needs to
only be invoked once.arguments
- any number of values. Each value may be one of: null, String, Boolean, Number,
JSONObject
, JSONArray
, or
JSONLiteral
.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.