接口 Layout
- 所有已知子接口:
RepackagingLayout
- 所有已知实现类:
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 implement
CustomLoaderLayout
if they wish to write
custom loader classes.- 从以下版本开始:
- 1.0.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明Returns the location of classes within the archive.default String
Returns the location of the classpath index file that should be written ornull
if not index is required.Returns the launcher class name for this layout.default String
Returns the location of the layer index file that should be written ornull
if not index is required.getLibraryLocation
(String libraryName, LibraryScope scope) Returns the destination path for a given library.boolean
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
-
getLibraryLocation
Returns the destination path for a given library.- 参数:
libraryName
- the name of the library (excluding any path)scope
- the scope of the library- 返回:
- 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
String getClassesLocation()Returns the location of classes within the archive.- 返回:
- the classes location
-
getClasspathIndexFileLocation
Returns the location of the classpath index file that should be written ornull
if not index is required. The result should include the filename and is relative to the root of the jar.- 返回:
- the classpath index file location
- 从以下版本开始:
- 2.5.0
-
getLayersIndexFileLocation
Returns the location of the layer index file that should be written ornull
if not index is required. The result should include the filename and is relative to the root of the jar.- 返回:
- the layer index file location
- 从以下版本开始:
- 2.5.0
-
isExecutable
boolean isExecutable()Returns if loader classes should be included to make the archive executable.- 返回:
- if the layout is executable
-