JBoss Metadata Web 7.1.1.Final

org.jboss.metadata.merge.web.spec
Class WebCommonMetaDataMerger

java.lang.Object
  extended by 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 Summary
WebCommonMetaDataMerger()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebCommonMetaDataMerger

public WebCommonMetaDataMerger()
Method Detail

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

JBoss Metadata Web 7.1.1.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.