Class Library
- java.lang.Object
- org.springframework.boot.loader.tools.Library
Constructor Summary
Constructors Constructor Description 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.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()Return the library file.StringgetName()Return the name of file as it should be written.LibraryScopegetScope()Return the scope of the library.booleanisUnpackRequired()Return if the file cannot be used directly as a nested jar and needs to be unpacked.
Constructor Detail
Library
public Library(File file, LibraryScope scope)
Create a newLibrary.- Parameters:
file- the source filescope- the scope of the library
Library
public Library(File file, LibraryScope scope, boolean unpackRequired)
Create a newLibrary.- Parameters:
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.- Parameters:
name- the name of the library as it should be written ornullto use the file namefile- the source filescope- the scope of the libraryunpackRequired- if the library needs to be unpacked before it can be used
Method Detail
getScope
public LibraryScope getScope()
Return the scope of the library.- Returns:
- the scope
isUnpackRequired
public boolean isUnpackRequired()
Return if the file cannot be used directly as a nested jar and needs to be unpacked.- Returns:
- if unpack is required