Package io.vertigo.core.node.config
Class BootConfigBuilder
- java.lang.Object
-
- io.vertigo.core.node.config.BootConfigBuilder
-
- All Implemented Interfaces:
Builder<BootConfig>
public final class BootConfigBuilder extends Object implements Builder<BootConfig>
Configuration.- Author:
- npiedeloup, pchretien
-
-
Method Summary
-
-
-
Method Detail
-
withLocales
public BootConfigBuilder withLocales(String locales)
Opens the boot module. There is exactly one BootConfig per NodeConfig.- Parameters:
locales
- a string which contains all the locales separated with a simple comma : ',' .- Returns:
- this builder
-
withLocalesAndDefaultZoneId
public BootConfigBuilder withLocalesAndDefaultZoneId(String locales, String defaultZoneId)
Opens the boot module. There is exactly one BootConfig per NodeConfig. With a default ZoneId for DateTime formatter.- Parameters:
locales
- a string which contains all the locales separated with a simple comma : ',' .defaultZoneId
- a string which contains defaultZoneId.- Returns:
- this builder
-
withLogConfig
public BootConfigBuilder withLogConfig(LogConfig logConfig)
Ajout de paramètres- Parameters:
logConfig
- Config of logs- Returns:
- this builder
-
verbose
public BootConfigBuilder verbose()
Enables verbosity during startup- Returns:
- this builder
-
withAopEngine
public BootConfigBuilder withAopEngine(AopPlugin aopPlugin)
- Parameters:
aopPlugin
- AopPlugin- Returns:
- this builder
-
withSocketLoggerAnalyticsConnector
public BootConfigBuilder withSocketLoggerAnalyticsConnector(Param... params)
-
withSmartLoggerAnalyticsConnector
public BootConfigBuilder withSmartLoggerAnalyticsConnector(Param... params)
-
addAnalyticsConnectorPlugin
public BootConfigBuilder addAnalyticsConnectorPlugin(Class<? extends AnalyticsConnectorPlugin> analyticsConnectorPluginClass, Param... params)
Adds a AnalyticsConnectorPlugin- Parameters:
analyticsConnectorPluginClass
- the plugin to useparams
- the params- Returns:
- these features
-
addPlugin
public BootConfigBuilder addPlugin(Class<? extends Plugin> pluginImplClass, Param... params)
Adds a plugin defined by its implementation.- Parameters:
pluginImplClass
- impl of the pluginparams
- the list of params- Returns:
- this builder
-
addPlugin
public BootConfigBuilder addPlugin(PluginConfig pluginConfig)
Adds a plugin defined by its builder.- Parameters:
pluginConfig
- the plugin-config- Returns:
- this builder
-
build
public BootConfig build()
- Specified by:
build
in interfaceBuilder<BootConfig>
- Returns:
- BootConfig
-
-