Add jarmode support to the loader code

Update the `Launcher` class to allow a packaged jar to be  launched in
a different mode. The launcher now checks for a `jarmode` property and
attempts to find a `JarMode` implementation using the standard
`spring.factories` mechanism.

Closes gh-19848
This commit is contained in:
Phillip Webb
2020-01-22 01:08:45 -08:00
parent d5a70688cb
commit 73a42050d6
9 changed files with 291 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
org.springframework.boot.loader.jarmode.JarMode=\
org.springframework.boot.loader.jarmode.TestJarMode