Class Mounts.Builder
java.lang.Object
org.apache.jackrabbit.oak.spi.mount.Mounts.Builder
- Enclosing class:
Mounts
Provides a fluent API from creating
MountInfoProvider instances-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newMountInfoProviderAdds a new Mount instance with the specified parametersAdds a new read-writeMountwith the specified name and pathsreadOnlyMount(String name, String... paths) Adds a new read-only Mount with the specified name and paths
-
Method Details
-
mount
Adds a new read-writeMountwith the specified name and paths- Parameters:
name- the name of the mountpaths- the paths handled by the mount- Returns:
- this builder instance
-
readOnlyMount
Adds a new read-only Mount with the specified name and paths- Parameters:
name- the name of the mountpaths- the paths handled by the mount- Returns:
- this builder instance
-
mount
public Mounts.Builder mount(String name, boolean readOnly, List<String> pathsSupportingFragments, List<String> paths) Adds a new Mount instance with the specified parameters- Parameters:
name- the name of the mountreadOnly- true for read-only paths, false otherwisepathsSupportingFragments- the paths supporting fragments, seeMount.getPathFragmentName()paths- the paths handled by the mount- Returns:
- this builder instance
-
build
Creates a newMountInfoProvider- Returns:
- a newly-created MountInfoProvider
-