public class SeedMain extends Object
Main SeedStack Java application entry point. It searches classes implementing SeedLauncher
through the
ServiceLoader
mechanism. If no class or more than one class is found, it throws an exception. If exactly one
class is found, it delegates the SeedStack application startup to its SeedLauncher.launch(String[])
method.
Exception handling and diagnostic during startup and shutdown is done directly in this class. This is materialized
by the fact that Seed.hasLifecycleExceptionHandler()
returns true when SeedMain
is used.
If an exception occurs during startup or shutdown, it is translated using Seed.translateException(Exception)
and its stack trace is printed on the standard error output. During startup only a diagnostic report is also dumped.
Constructor and Description |
---|
SeedMain() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Entry point of SeedStack non-managed applications (launched from the command-line).
|
public static void main(String[] args)
args
- The command-line arguments.Copyright © 2013-2018–2019 SeedStack. All rights reserved.