Interface Layout
- All Known Subinterfaces:
RepackagingLayout
- All Known Implementing Classes:
Layouts.Expanded,Layouts.Jar,Layouts.None,Layouts.War
public interface Layout
Strategy interface used to determine the layout for a particular type of archive. Layouts may additionally implementCustomLoaderLayoutif they wish to write custom loader classes.- See Also:
Layouts,RepackagingLayout,CustomLoaderLayout
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetClassesLocation()Returns the location of classes within the archive.StringgetLauncherClassName()Returns the launcher class name for this layout.StringgetLibraryDestination(String libraryName, LibraryScope scope)Returns the destination path for a given library.booleanisExecutable()Returns if loader classes should be included to make the archive executable.
Method Detail
getLauncherClassName
String getLauncherClassName()
Returns the launcher class name for this layout.- Returns:
- the launcher class name
getLibraryDestination
String getLibraryDestination(String libraryName, LibraryScope scope)
Returns the destination path for a given library.- 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
nullif the library should not be included.
getClassesLocation
String getClassesLocation()
Returns the location of classes within the archive.- Returns:
- the classes location
isExecutable
boolean isExecutable()
Returns if loader classes should be included to make the archive executable.- Returns:
- if the layout is executable