Class WebCommonMetaDataMerger
java.lang.Object
org.jboss.metadata.merge.web.spec.WebCommonMetaDataMerger
The web-app spec metadata, common between the fragments and the main web.xml
- Version:
- $Revision: 70996 $
- Author:
- Scott.Stark@jboss.org
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaugment(WebCommonMetaData dest, WebCommonMetaData webFragmentMetaData, WebCommonMetaData webMetaData, boolean resolveConflicts) Merge web meta data, according to the merging rules specified by the Servlet 3.0 specification.
-
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 onewebMetaData- The base web meta data, used for conflict error checkingresolveConflicts- 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
-