接口 Layout
- 所有已知子接口:
 RepackagingLayout
- 所有已知实现类:
 Layouts.Expanded,Layouts.Jar,Layouts.Module,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.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
方法详细资料
getLauncherClassName
String getLauncherClassName()
Returns the launcher class name for this layout.- 返回:
 - the launcher class name
 
getLibraryDestination
String getLibraryDestination(String libraryName, LibraryScope scope)
Returns the destination path for a given library.- 参数:
 libraryName- the name of the library (excluding any path)scope- the scope of the library- 返回:
 - 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.- 返回:
 - the classes location
 
isExecutable
boolean isExecutable()
Returns if loader classes should be included to make the archive executable.- 返回:
 - if the layout is executable