Class WebCommonMetaDataMerger

java.lang.Object
org.jboss.metadata.merge.web.spec.WebCommonMetaDataMerger

public class WebCommonMetaDataMerger extends Object
The web-app spec metadata, common between the fragments and the main web.xml
Version:
$Revision: 70996 $
Author:
Scott.Stark@jboss.org
  • Constructor Details

    • WebCommonMetaDataMerger

      public WebCommonMetaDataMerger()
  • Method Details

    • augment

      public static void augment(WebCommonMetaData dest, WebCommonMetaData webFragmentMetaData, WebCommonMetaData webMetaData, boolean resolveConflicts)
      Merge web meta data, according to the merging rules specified by the Servlet 3.0 specification. This is a special type of merging, where non conflicting meta data augment existing meta data, rather than overriding it. If there is a conflict when merging the fragment meta data, and the main webMetaData does not resolve the conflict, an error will be thrown or the conflict will be resolved in favor of this object, depending on the value of the resolve flag.
      Parameters:
      webFragmentMetaData - The web meta data which will be merged into this one
      webMetaData - The base web meta data, used for conflict error checking
      resolveConflicts - If true, any conflict will be skipped without an error. Otherwise, an error will be thrown. If this is true, then as all conflict will be resolved in favor of this object, webMetaData will not be used and can be null