...
Gadgets that do not directly require this feature may have it required for them as a dependency of other features.
...
Options
This feature takes an optional parameter to enable the possibility of having multiple gadgets opt-in to a shared execution scope. This is primarily to facilitate the cross-gadget used of a single shared-script-frame.
To use this feature with the shared-scope option, a gadget must require(or optional) the feature like so:
Code Block |
---|
<Require feature="locked-domain">
<Param name="participant">http://gadgets.another-example.com/SharedLockedDomainDemo1.xml</Param>
<Param name="participant">http://gadgets.example.com/SharedLockedDomainDemo2.xml</Param>
</Require>
|
The container may or may not choose to honor this option.
All participants in the shared scope must be listed, including the actual gadget listing them. As a precaution it is recommended that container implementations manually add the gadget in questions to the list, if absent, when deriving the shared-scope.
If the container chooses to honor the option, a "shared-scope" derived from the list of participants will be created for any gadget that specifies the same set of gadgets. If these gadgets use the shared-script-frame feature, they will all have access to and share a common frame.