Class Library
java.lang.Object
org.springframework.boot.loader.tools.Library
- Direct Known Subclasses:
- JarModeLibrary
Encapsulates information about a single library that may be packed into the archive.
- Since:
- 1.1.2
- Author:
- Phillip Webb, Scott Frederick
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLibrary(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.
- 
Method SummaryModifier and TypeMethodDescriptionReturn 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.booleanReturn if the library is included in the uber jar.booleanisLocal()Return if the library is local (part of the same build) to the application that is being packaged.booleanReturn if the file cannot be used directly as a nested jar and needs to be unpacked.
- 
Constructor Details- 
LibraryCreate a newLibrary.- Parameters:
- file- the source file
- scope- the scope of the library
 
- 
Librarypublic Library(String name, File file, LibraryScope scope, LibraryCoordinates coordinates, boolean unpackRequired, boolean local, boolean included) Create a newLibrary.- Parameters:
- name- the name of the library as it should be written or- nullto use the file name
- file- the source file
- scope- the scope of the library
- coordinates- the library coordinates or- null
- unpackRequired- if the library needs to be unpacked before it can be used
- local- if the library is local (part of the same build) to the application that is being packaged
- included- if the library is included in the uber jar
- Since:
- 2.4.8
 
 
- 
- 
Method Details- 
getNameReturn the name of file as it should be written.- Returns:
- the name
 
- 
getFileReturn the library file.- Returns:
- the file
 
- 
getScopeReturn the scope of the library.- Returns:
- the scope
 
- 
getCoordinatesReturn the coordinates of the library.- Returns:
- the coordinates
 
- 
isUnpackRequiredpublic boolean isUnpackRequired()Return if the file cannot be used directly as a nested jar and needs to be unpacked.- Returns:
- if unpack is required
 
- 
isLocalpublic boolean isLocal()Return if the library is local (part of the same build) to the application that is being packaged.- Returns:
- if the library is local
 
- 
isIncludedpublic boolean isIncluded()Return if the library is included in the uber jar.- Returns:
- if the library is included
 
 
-