|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KernelConfiguration
Kernel configuration is used as an helper object to instantiate a Nuun kernel.
| Method Summary | |
|---|---|
KernelConfiguration |
classpathScanMode(ClasspathScanMode mode)
Sets the classpath scan mode. |
KernelConfiguration |
containerContext(Object containerContext)
Sets the container context which will be passed to plugins. |
KernelConfiguration |
dependencyInjectionMode(DependencyInjectionMode mode)
Sets the dependency injection mode. |
KernelConfiguration |
moduleValidation(ModuleValidation validation)
Sets a ModuleValidation which will be used
to assert UnitModule given by the plugins. |
KernelConfiguration |
param(String key,
String value)
Sets a key/value parameter. |
KernelConfiguration |
params(String... paramEntries)
Sets parameters entries as a sequence of key value pairs. |
KernelConfiguration |
plugins(Class<? extends Plugin>... pluginsClass)
Specifies the plugins to be used by the Nuun kernel. |
KernelConfiguration |
plugins(Plugin... plugins)
Specifies the plugins to be used by the Nuun kernel. |
KernelConfiguration |
withoutSpiPluginsLoader()
Disables the plugin scan via the service loader. |
KernelConfiguration |
withSpiPluginsLoader()
Enables the plugin scan via the service loader. |
| Method Detail |
|---|
KernelConfiguration param(String key,
String value)
key - the keyvalue - the value
KernelConfiguration params(String... paramEntries)
paramEntries - parameters
KernelConfiguration containerContext(Object containerContext)
containerContext - the container context
KernelConfiguration plugins(Class<? extends Plugin>... pluginsClass)
pluginsClass - the plugin classes
KernelConfiguration plugins(Plugin... plugins)
plugins - the plugin instances
KernelConfiguration withoutSpiPluginsLoader()
This allows to only use the plugins explicitly specified in the kernel configuration.
KernelConfiguration withSpiPluginsLoader()
All the plugin declared in META-INF/services will use by the Nuun kernel.
KernelConfiguration dependencyInjectionMode(DependencyInjectionMode mode)
mode - the mode to use
DependencyInjectionModeKernelConfiguration classpathScanMode(ClasspathScanMode mode)
mode - the mode to use
ClasspathScanModeKernelConfiguration moduleValidation(ModuleValidation validation)
ModuleValidation which will be used
to assert UnitModule given by the plugins.
validation - the module validation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||