Class Mounts.Builder

  • Enclosing class:
    Mounts

    public static final class Mounts.Builder
    extends Object
    Provides a fluent API from creating MountInfoProvider instances
    • Method Detail

      • mount

        public Mounts.Builder mount​(String name,
                                    String... paths)
        Adds a new read-write Mount with the specified name and paths
        Parameters:
        name - the name of the mount
        paths - the paths handled by the mount
        Returns:
        this builder instance
      • readOnlyMount

        public Mounts.Builder readOnlyMount​(String name,
                                            String... paths)
        Adds a new read-only Mount with the specified name and paths
        Parameters:
        name - the name of the mount
        paths - 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 mount
        readOnly - true for read-only paths, false otherwise
        pathsSupportingFragments - the paths supporting fragments, see Mount.getPathFragmentName()
        paths - the paths handled by the mount
        Returns:
        this builder instance