Class Layouts.War

java.lang.Object
org.springframework.boot.loader.tools.Layouts.War
All Implemented Interfaces:
Layout
Enclosing class:
Layouts

public static class Layouts.War extends Object implements Layout
Executable WAR layout.
  • Constructor Details

    • War

      public War()
  • Method Details

    • getLauncherClassName

      public String getLauncherClassName()
      Description copied from interface: Layout
      Returns the launcher class name for this layout.
      Specified by:
      getLauncherClassName in interface Layout
      Returns:
      the launcher class name
    • getLibraryLocation

      public String getLibraryLocation(String libraryName, LibraryScope scope)
      Description copied from interface: Layout
      Returns the destination path for a given library.
      Specified by:
      getLibraryLocation in interface Layout
      Parameters:
      libraryName - the name of the library (excluding any path)
      scope - the scope of the library
      Returns:
      the location of the library relative to the root of the archive (should end with '/') or null if the library should not be included.
    • getClassesLocation

      public String getClassesLocation()
      Description copied from interface: Layout
      Returns the location of classes within the archive.
      Specified by:
      getClassesLocation in interface Layout
      Returns:
      the classes location
    • getClasspathIndexFileLocation

      public String getClasspathIndexFileLocation()
      Description copied from interface: Layout
      Returns the location of the classpath index file that should be written or null if not index is required. The result should include the filename and is relative to the root of the jar.
      Specified by:
      getClasspathIndexFileLocation in interface Layout
      Returns:
      the classpath index file location
    • getLayersIndexFileLocation

      public String getLayersIndexFileLocation()
      Description copied from interface: Layout
      Returns the location of the layer index file that should be written or null if not index is required. The result should include the filename and is relative to the root of the jar.
      Specified by:
      getLayersIndexFileLocation in interface Layout
      Returns:
      the layer index file location
    • isExecutable

      public boolean isExecutable()
      Description copied from interface: Layout
      Returns if loader classes should be included to make the archive executable.
      Specified by:
      isExecutable in interface Layout
      Returns:
      if the layout is executable