public void merge ( final ResourceRoot additionalResourceRoot ) { if ( ! additionalResourceRoot . getRoot ( ) . equals ( root ) ) { throw ServerLogger . ROOT_LOGGER . cannotMergeResourceRoot ( root , additionalResourceRoot . getRoot ( ) ) ; } usePhysicalCodeSource = additionalResourceRoot . usePhysicalCodeSource ; if ( additionalResourceRoot . getExportFilters ( ) . isEmpty ( ) ) { //new root has no filters, so we don't want our existing filters to break anything //see WFLY-1527 this . exportFilters . clear ( ) ; } else { this . exportFilters . addAll ( additionalResourceRoot . getExportFilters ( ) ) ; } }
Merges information from the resource root into this resource root