接口 LoaderClassesWriter

所有已知实现类:
AbstractJarWriter, JarWriter

public interface LoaderClassesWriter
Writer used by CustomLoaderLayouts to write classes into a repackaged JAR.
从以下版本开始:
1.5.0
作者:
Phillip Webb
  • 方法详细资料

    • writeLoaderClasses

      void writeLoaderClasses() throws IOException
      Write the default required spring-boot-loader classes to the JAR.
      抛出:
      IOException - if the classes cannot be written
    • writeLoaderClasses

      void writeLoaderClasses(LoaderImplementation loaderImplementation) throws IOException
      Write the default required spring-boot-loader classes to the JAR.
      参数:
      loaderImplementation - the specific implementation to write
      抛出:
      IOException - if the classes cannot be written
      从以下版本开始:
      3.2.0
    • writeLoaderClasses

      void writeLoaderClasses(String loaderJarResourceName) throws IOException
      Write custom required spring-boot-loader classes to the JAR.
      参数:
      loaderJarResourceName - the name of the resource containing the loader classes to be written
      抛出:
      IOException - if the classes cannot be written
    • writeEntry

      void writeEntry(String name, InputStream inputStream) throws IOException
      Write a single entry to the JAR.
      参数:
      name - the name of the entry
      inputStream - the input stream content
      抛出:
      IOException - if the entry cannot be written