Java Reference
In-Depth Information
Relative ordering is defined by an ordering element and its subelements before
and after . With relative ordering, the order in which application configuration resource
files will be loaded is calculated by considering ordering entries from the different files.
The following example shows some of these considerations. In the following example,
config-A , config-B , and config-C are different application configuration re-
source files.
File config-A contains the following elements:
<faces-config>
<name>config-A</name>
<ordering>
<before>
<name>config-B</name>
</before>
</ordering>
</faces-config>
File config-B (not shown here) does not contain any ordering elements.
File config-C contains the following elements:
<faces-config>
<name>config-C</name>
<ordering>
<after>
<name>config-B</name>
</after>
</ordering>
</faces-config>
Based on the before subelement entry, file config-A will be loaded before the
config-B file. Based on the after subelement entry, file config-C will be loaded
after the config-B file.
In addition, a subelement others can also be nested within the before and after
subelements. If the others element is present, the specified file may receive highest or
lowest preference among both listed and unlisted configuration files.
If an ordering element is not present in an application configuration file, then that file
will be loaded after all the files that contain ordering elements.
Search WWH ::




Custom Search