-
Notifications
You must be signed in to change notification settings - Fork 5
Kernel configuration
Create a kernel using the NuunCore
class. It accepts a KernelConfiguration
, a builder for initializing the kernel.
KernelConfiguration configuration = NuunCore.newKernelConfiguration()
.params("key1", "val1", "key2", "val2")
.addPlugin(MyAdditionalPlugin.class);
NuunCore.createKernel(configuration);
Method | Description |
---|---|
|
Specifies kernel parameters. The most important is certainly the |
|
Sets the container context which will be passed to plugins. |
|
Specifies the plugins to be used by the Nuun kernel. |
|
Disables the plugin scan via the service loader. This allows to only use the plugins explicitly specified in the kernel configuration. |
|
Enables the plugin scan via the service loader. All the plugins declared in |
|
Sets the dependency injection mode. Kernel modes are the mode in which the internal dependency injection framework should work: production mode, dev mode, tools mode. They were inspired by Guice Stage. |
|
Sets the classpath scan mode.
- |
|
Sets a ModuleValidation which will be used to assert UnitModule given by the plugins. |
- Introduction
- ... Motivation
- ... Features
- ... Manifesto
- User manual
- ... Kernel
- ...... Kernel Life Cycle
- ...... Kernel Configuration
- ... Plugin
- ...... Plugin Life cycle
- ...... Request API
- ...... Native Module
- ...... Dependencies
- ... Tests
- ...... Integration Tests
- Advanced topics
- ... Design Best Practices
- ... Multi-Round Plugin
- ... Kernel param aliases
- ... SPI
- ...... DI Provider
- ...... Concern
- ...... Extension
- Definitions
- ... Framework
- ... Entreprise Stack
- ... API
- ... SPI
- ... Library
- ... Inversion of Control
- ... Dependency Injection
- Concepts
- ... UnitModule
- ... GlobalModule
- ... ObjectGraph