* 2.2 No, Construct the EXCLUDED_JAR_URLS, which is required by many other components,
* even the Servlet Container for dynamic ServletRegistration/FilterRegistration
*/
public static WebFragmentEntry[] absoluteOrderWebFragments(EARContext earContext, Module module, Bundle bundle, WebApp webApp, Map<String, WebFragmentEntry> webFragmentEntryMap)
throws DeploymentException {
AbsoluteOrdering absoluteOrdering = webApp.getAbsoluteOrdering();
Set<String> expliciteConfiguredWebFragmentNames = new LinkedHashSet<String>();
List<WebFragmentEntry> orderedWebFragments = new LinkedList<WebFragmentEntry>();
Map<String, WebFragmentEntry> unusedWebFragmentEntryMap = new LinkedHashMap<String, WebFragmentEntry>(webFragmentEntryMap);
for (Object o : absoluteOrdering.getNameOrOthers()) {
if (o instanceof String) {
//web fragment name
String webFragmentName = (String) o;
unusedWebFragmentEntryMap.remove(webFragmentName);
}
}
for (Object o : absoluteOrdering.getNameOrOthers()) {
if (o instanceof String) {
//web fragment name
String webFragmentName = (String) o;
// Only process the web-fragment.xml when it is present and it is not processed before
if (webFragmentEntryMap.containsKey(webFragmentName) && !expliciteConfiguredWebFragmentNames.contains(webFragmentName)) {