类 Library
- java.lang.Object
- org.springframework.boot.loader.tools.Library
构造器概要
构造器 构造器 说明 Library(File file, LibraryScope scope)
Create a newLibrary
.Library(File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary
.Library(String name, File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 File
getFile()
Return the library file.String
getName()
Return the name of file as it should be written.LibraryScope
getScope()
Return the scope of the library.boolean
isUnpackRequired()
Return if the file cannot be used directly as a nested jar and needs to be unpacked.
构造器详细资料
Library
public Library(File file, LibraryScope scope)
Create a newLibrary
.- 参数:
file
- the source filescope
- the scope of the library
Library
public Library(File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary
.- 参数:
file
- the source filescope
- the scope of the libraryunpackRequired
- if the library needs to be unpacked before it can be used
Library
public Library(String name, File file, LibraryScope scope, boolean unpackRequired)
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 libraryunpackRequired
- if the library needs to be unpacked before it can be used
方法详细资料
getScope
public LibraryScope getScope()
Return the scope of the library.- 返回:
- the scope
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