Class DefaultRootLocator

  • All Implemented Interfaces:
    RootLocator

    @Named
    public class DefaultRootLocator
    extends java.lang.Object
    implements RootLocator
    • Constructor Detail

      • DefaultRootLocator

        public DefaultRootLocator()
    • Method Detail

      • findRoot

        public java.nio.file.Path findRoot​(java.nio.file.Path basedir)
        Specified by:
        findRoot in interface RootLocator
      • findMandatoryRoot

        public java.nio.file.Path findMandatoryRoot​(java.nio.file.Path basedir)
        Specified by:
        findMandatoryRoot in interface RootLocator
      • getRootDirectoryFallback

        protected java.util.Optional<java.nio.file.Path> getRootDirectoryFallback()
      • getCanonicalPath

        protected java.nio.file.Path getCanonicalPath​(java.nio.file.Path path)
      • isRootDirectory

        public boolean isRootDirectory​(java.nio.file.Path dir)