java.lang.Object
org.springframework.boot.loader.tools.Layouts.Jar
org.springframework.cloud.function.adapter.gcp.layout.GcfJarLayout
All Implemented Interfaces:
org.springframework.boot.loader.tools.CustomLoaderLayout, org.springframework.boot.loader.tools.Layout, org.springframework.boot.loader.tools.RepackagingLayout

public class GcfJarLayout extends org.springframework.boot.loader.tools.Layouts.Jar implements org.springframework.boot.loader.tools.CustomLoaderLayout
A custom JAR Layout that writes GCF adapter classes to the top-level of the output JAR for deploying to GCF.
Author:
Ray Tsang, Daniel Zou
  • Constructor Details

    • GcfJarLayout

      public GcfJarLayout()
  • Method Details

    • getLauncherClassName

      public String getLauncherClassName()
      Specified by:
      getLauncherClassName in interface org.springframework.boot.loader.tools.Layout
      Overrides:
      getLauncherClassName in class org.springframework.boot.loader.tools.Layouts.Jar
    • isExecutable

      public boolean isExecutable()
      Specified by:
      isExecutable in interface org.springframework.boot.loader.tools.Layout
      Overrides:
      isExecutable in class org.springframework.boot.loader.tools.Layouts.Jar
    • writeLoadedClasses

      public void writeLoadedClasses(org.springframework.boot.loader.tools.LoaderClassesWriter writer) throws IOException
      Specified by:
      writeLoadedClasses in interface org.springframework.boot.loader.tools.CustomLoaderLayout
      Throws:
      IOException