public final class Main
extends com.neeve.daemon.DmnMain
This class forms the main entry point of a Neeve XVM. Upon startup, this class performs basic server initialization, prints the server banner and hands over control to the server controller.
Modifier and Type | Class and Description |
---|---|
static class |
Main.Args |
Modifier and Type | Method and Description |
---|---|
static ProductInfo |
getProductInfo()
This method can be used to retrieve the
ProductInfo which contains
the version of the platform being used. |
static Configurer |
loadBootstrapConfigurer()
Attempts to load find and load a single bootstrap
Configurer using ServiceLoader . |
static void |
main(String[] args)
Main entry point
|
static SrvConfigDescriptor |
seedServerConfig(Configurer configurer,
String[] args)
Seeds server configuration using the provided
Configurer and command line arguments. |
public static final Configurer loadBootstrapConfigurer() throws ServiceConfigurationError
Configurer
using ServiceLoader
.Configurer
or null if none is found.ServiceConfigurationError
- if there is an error resolving the Configurer
or more than one Configurer
s are found.public static final SrvConfigDescriptor seedServerConfig(Configurer configurer, String[] args) throws Exception, com.neeve.cli.CliException
Configurer
and command line arguments.
Important Note:
Multiple invocations of seedServerConfig(Configurer, String[])
or invocation of
seedServerConfig(Configurer, String[])
after any other platform class has
been loaded is inherently unreliable as by nature the intent of the Configurer is to
perform environment wide configuration that is used throughout the platform during static
singleton initialization of shared components.
configurer
- The Configurer
. If non null, then this method will call Configurer.configure(String[])
with the provided args.args
- The arguments used to seed server configuration.SrvConfigDescriptor
.Exception
- If there is an error seeding configuration.com.neeve.cli.CliException
- If there is an error parsing arguments.public static final void main(String[] args)
public static final ProductInfo getProductInfo()
ProductInfo
which contains
the version of the platform being used.ProductInfo
.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.