java.lang.Object
io.helidon.microprofile.cdi.Main
This is the "master" main class of Helidon MP.
You can boot the Helidon MP instance using this class if you want do not need to modify
anything using builders.
Startup
Configuration
If this method is used, the following approach is taken for configuration:
- If there is a
meta-configfile in one of the supported formats (a config parser on the classpath, e.g.yaml, it will be used to set up configuration - If there are any MicroProfile config sources, these will be added
- If there are any
META-INF/microprofile-config.propertiesfiles on the classpath, these will be added
Logging
Helidon uses Java Util Logging. You can configure logging using:- A system property
java.util.logging.config.class - A system property
java.util.logging.config.file - Placing file
logging.propertieson the current path - Placing file
logging.propertieson the classpath
-
Method Summary
-
Method Details
-
main
Start CDI. This will also start all features on the classpath, such as JAX-RS. This method should only be invoked when custom configuration is not used (in cases you rely on config sources from classpath, or on meta-configuration).- Parameters:
args- command line arguments, currently ignored
-
shutdown
public static void shutdown()Shutdown CDI container.
-