Interface JavaFormatConfig


  • public interface JavaFormatConfig
    Support for the .springjavaformatconfig file that can be used to apply settings on a per-project basis.
    Author:
    Phillip Webb
    • Method Detail

      • getJavaBaseline

        JavaBaseline getJavaBaseline()
        Java JDK baseline version expected be used when formatting.
        Returns:
        the JDK version
      • getIndentationStyle

        IndentationStyle getIndentationStyle()
        Return the indentation style that should be used with the project.
        Returns:
        the indentation style
      • findFrom

        static JavaFormatConfig findFrom​(Path path)
        Find and load a .springjavaformatconfig by searching from the given file.
        Parameters:
        path - the file or directory to search from
        Returns:
        a loaded JavaFormatConfig or DEFAULT if no .springjavaformatconfig file is found
      • findFrom

        static JavaFormatConfig findFrom​(File file)
        Find and load a .springjavaformatconfig by searching from the given file.
        Parameters:
        file - the file or directory to search from
        Returns:
        a loaded JavaFormatConfig or DEFAULT if no .springjavaformatconfig file is found