AEM filter.xml 条目的默认模式是什么?

What is default mode for AEM filter.xml entry?

在 AEM 中,有一个众所周知的 filter.xml 文件用于过滤包的目标路径。这是一个例子:

<workspaceFilter version="1.0">
    <filter root="/etc/map" mode="merge" />
</workspaceFilter>

在我现在的项目中,开发人员多次询问默认模式是什么。我认为是 replace,但在 Jackrabbit/AEM 文档中并不清楚。

替换它是默认模式。文档说:

"replace : This is the normal behavior. Existing content is replaced
 completely by the imported content, i.e. is overridden or deleted
 accordingly.The normal mode"

https://jackrabbit.apache.org/filevault/filter.html

代码在这里(第 68 行): https://github.com/apache/jackrabbit-filevault/blob/e730ef9c999ac69b477675cd2671ff6ab5167d4d/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/api/FilterSet.java

/**
 * import mode. defaults to {@link ImportMode#REPLACE}.
 */
@NotNull
private ImportMode mode = ImportMode.REPLACE;