Class Layouts.Jar
- java.lang.Object
- org.springframework.boot.loader.tools.Layouts.Jar
- All Implemented Interfaces:
Layout
,RepackagingLayout
- Direct Known Subclasses:
Layouts.Expanded
,Layouts.None
- Enclosing class:
- Layouts
public static class Layouts.Jar extends Object implements RepackagingLayout
Executable JAR layout.
Constructor Summary
Constructors Constructor Description Jar()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassesLocation()
Returns the location of classes within the archive.String
getLauncherClassName()
Returns the launcher class name for this layout.String
getLibraryDestination(String libraryName, LibraryScope scope)
Returns the destination path for a given library.String
getRepackagedClassesLocation()
Returns the location to which classes should be moved.boolean
isExecutable()
Returns if loader classes should be included to make the archive executable.
Constructor Detail
Jar
public Jar()
Method Detail
getLauncherClassName
public String getLauncherClassName()
Description copied from interface:Layout
Returns the launcher class name for this layout.- Specified by:
getLauncherClassName
in interfaceLayout
- Returns:
- the launcher class name
getLibraryDestination
public String getLibraryDestination(String libraryName, LibraryScope scope)
Description copied from interface:Layout
Returns the destination path for a given library.- Specified by:
getLibraryDestination
in interfaceLayout
- 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 String getClassesLocation()
Description copied from interface:Layout
Returns the location of classes within the archive.- Specified by:
getClassesLocation
in interfaceLayout
- Returns:
- the classes location
getRepackagedClassesLocation
public String getRepackagedClassesLocation()
Description copied from interface:RepackagingLayout
Returns the location to which classes should be moved.- Specified by:
getRepackagedClassesLocation
in interfaceRepackagingLayout
- Returns:
- the repackaged 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 interfaceLayout
- Returns:
- if the layout is executable