Class Layouts.War

  • All Implemented Interfaces:
    Layout
    Enclosing class:
    Layouts

    public static class Layouts.War
    extends java.lang.Object
    implements Layout
    Executable WAR layout.
    • Constructor Summary

      Constructors 
      Constructor Description
      War()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getClassesLocation()
      Returns the location of classes within the archive.
      java.lang.String getLauncherClassName()
      Returns the launcher class name for this layout.
      java.lang.String getLibraryDestination​(java.lang.String libraryName, LibraryScope scope)
      Returns the destination path for a given library.
      boolean isExecutable()
      Returns if loader classes should be included to make the archive executable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • War

        public War()
    • Method Detail

      • getLauncherClassName

        public java.lang.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
      • getLibraryDestination

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

        public java.lang.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
      • 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