Class ImagePackager
java.lang.Object
org.springframework.boot.loader.tools.Packager
org.springframework.boot.loader.tools.ImagePackager
Utility class that can be used to export a fully packaged archive to an OCI image.
- Since:
- 2.3.0
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.boot.loader.tools.PackagerPackager.MainClassTimeoutWarningListener
- 
Constructor SummaryConstructorsConstructorDescriptionImagePackager(File source, File backupFile) Create a newImagePackagerinstance.
- 
Method SummaryModifier and TypeMethodDescriptionvoidpackageImage(Libraries libraries, BiConsumer<ZipEntry, EntryWriter> exporter) Create a packaged image.Methods inherited from class org.springframework.boot.loader.tools.PackageraddMainClassTimeoutWarningListener, findMainMethod, getBackupFile, getLayout, getSource, isAlreadyPackaged, isAlreadyPackaged, setBackupFile, setIncludeRelevantJarModeJars, setLayers, setLayout, setLayoutFactory, setLoaderImplementation, setMainClass, write, write, writeSignatureFileIfNecessary
- 
Constructor Details- 
ImagePackagerCreate a newImagePackagerinstance.- Parameters:
- source- the source file to package
- backupFile- the backup of the source file to package
 
 
- 
- 
Method Details- 
packageImagepublic void packageImage(Libraries libraries, BiConsumer<ZipEntry, EntryWriter> exporter) throws IOExceptionCreate a packaged image.- Parameters:
- libraries- the contained libraries
- exporter- the exporter used to write the image
- Throws:
- IOException- on IO error
 
 
-