类 Library
java.lang.Object
org.springframework.boot.loader.tools.Library
- 直接已知子类:
JarModeLibrary
Encapsulates information about a single library that may be packed into the archive.
- 从以下版本开始:
- 1.1.2
- 作者:
- Phillip Webb, Scott Frederick
- 另请参阅:
-
构造器概要
构造器构造器说明Library
(File file, LibraryScope scope) Create a newLibrary
.Library
(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired, boolean local, boolean included) Create a newLibrary
. -
方法概要
修饰符和类型方法说明Return the coordinates of the library.getFile()
Return the library file.getName()
Return the name of file as it should be written.getScope()
Return the scope of the library.boolean
Return if the library is included in the uber jar.boolean
isLocal()
Return if the library is local (part of the same build) to the application that is being packaged.boolean
Return if the file cannot be used directly as a nested jar and needs to be unpacked.
-
构造器详细资料
-
Library
Create a newLibrary
.- 参数:
file
- the source filescope
- the scope of the library
-
Library
public Library(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired, boolean local, boolean included) Create a newLibrary
.- 参数:
name
- the name of the library as it should be written ornull
to use the file namefile
- the source filescope
- the scope of the librarycoordinates
- the library coordinates ornull
unpackRequired
- if the library needs to be unpacked before it can be usedlocal
- if the library is local (part of the same build) to the application that is being packagedincluded
- if the library is included in the uber jar- 从以下版本开始:
- 2.4.8
-
-
方法详细资料
-
getName
Return the name of file as it should be written.- 返回:
- the name
-
getFile
Return the library file.- 返回:
- the file
-
getScope
Return the scope of the library.- 返回:
- the scope
-
getCoordinates
Return the coordinates of the library.- 返回:
- the coordinates
-
isUnpackRequired
public boolean isUnpackRequired()Return if the file cannot be used directly as a nested jar and needs to be unpacked.- 返回:
- if unpack is required
-
isLocal
public boolean isLocal()Return if the library is local (part of the same build) to the application that is being packaged.- 返回:
- if the library is local
-
isIncluded
public boolean isIncluded()Return if the library is included in the uber jar.- 返回:
- if the library is included
-