Class GcfJarLauncher
java.lang.Object
org.springframework.boot.loader.Launcher
org.springframework.boot.loader.ExecutableArchiveLauncher
org.springframework.boot.loader.JarLauncher
org.springframework.cloud.function.adapter.gcp.GcfJarLauncher
- All Implemented Interfaces:
com.google.cloud.functions.HttpFunction,com.google.cloud.functions.RawBackgroundFunction
public class GcfJarLauncher
extends org.springframework.boot.loader.JarLauncher
implements com.google.cloud.functions.HttpFunction, com.google.cloud.functions.RawBackgroundFunction
The launcher class written at the top-level of the output JAR to be deployed to
Google Cloud Functions. This is the entry point to the function when run from JAR.
- Author:
- Ray Tsang, Daniel Zou
-
Field Summary
Fields inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
BOOT_CLASSPATH_INDEX_ATTRIBUTE, DEFAULT_CLASSPATH_INDEX_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.boot.loader.JarLauncher
getArchiveEntryPathPrefix, isNestedArchive, isPostProcessingClassPathArchives, mainMethods inherited from class org.springframework.boot.loader.ExecutableArchiveLauncher
createClassLoader, getArchive, getClassPathArchivesIterator, getClassPathIndex, getMainClass, isExploded, isSearchCandidate, postProcessClassPathArchivesMethods inherited from class org.springframework.boot.loader.Launcher
createArchive, createClassLoader, createMainMethodRunner, launch, launch
-
Constructor Details
-
GcfJarLauncher
- Throws:
Exception
-
-
Method Details
-
service
public void service(com.google.cloud.functions.HttpRequest httpRequest, com.google.cloud.functions.HttpResponse httpResponse) throws Exception - Specified by:
servicein interfacecom.google.cloud.functions.HttpFunction- Throws:
Exception
-
accept
- Specified by:
acceptin interfacecom.google.cloud.functions.RawBackgroundFunction- Throws:
Exception
-