You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ro...@apache.org on 2017/05/30 10:31:46 UTC
svn commit: r1796829 -
/jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java
Author: rombert
Date: Tue May 30 10:31:46 2017
New Revision: 1796829
URL: http://svn.apache.org/viewvc?rev=1796829&view=rev
Log:
OAK-6196 - Improve Javadoc of multiplexing SPI
Expand the Javadoc for Mount.isMounted
Modified:
jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java
Modified: jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java?rev=1796829&r1=1796828&r2=1796829&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java (original)
+++ jackrabbit/oak/trunk/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/mount/Mount.java Tue May 30 10:31:46 2017
@@ -88,8 +88,19 @@ public interface Mount {
/**
* Checks if given path belongs to this <code>Mount</code>
*
+ * <p>A path belongs to a Mount in two scenarios:
+ * <ol>
+ * <li>The path is below a fragment-supported path and the path contains a fragment name.</li>
+ * <li>The path of this mount is the most specific ancestor for the specified path.</li>
+ * </ol>
+ *
+ * The fragment check has a higher priority, and the presence of a fragment name in the path
+ * always decides the mount this path belongs to.
+ * </p>
* @param path path to check
* @return true if path belong to this mount
+ *
+ * @see #getPathFragmentName()
*/
boolean isMounted(String path);