java.lang.Object
io.helidon.common.SerializationConfig.Builder
- All Implemented Interfaces:
Builder<SerializationConfig.Builder,
,SerializationConfig> Supplier<SerializationConfig>
- Enclosing class:
- SerializationConfig
public static class SerializationConfig.Builder
extends Object
implements Builder<SerializationConfig.Builder,SerializationConfig>
Fluent API builder to customize
SerializationConfig
.
You can use system properties defined in the class to modify configuration, in which case you can just use
SerializationConfig.configureRuntime()
directly.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.filterPattern
(String filterPattern) Filter pattern to use.ignoreFiles
(boolean ignoreFiles) Whether to ignore "META-INF/helidon/serial-config.properties" property files defined in dependencies.onNoConfig
(SerializationConfig.Action onNoConfig) What action to do in case of no configuration of the global filter.onWrongConfig
(SerializationConfig.Action onWrongConfig) What action to do in case of wrong configuration of the global filter.traceSerialization
(SerializationConfig.TraceOption traceSerialization) How to trace serialization.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SerializationConfig.Builder,
SerializationConfig> - Returns:
- instance of the built type
-
onWrongConfig
What action to do in case of wrong configuration of the global filter.- Parameters:
onWrongConfig
- action to do- Returns:
- updated builder
-
onNoConfig
What action to do in case of no configuration of the global filter.- Parameters:
onNoConfig
- action to do, defaults toSerializationConfig.Action.CONFIGURE
- Returns:
- updated builder
-
filterPattern
Filter pattern to use. If the pattern does not contain a global reject pattern, it will be added as the last section of the pattern.- Parameters:
filterPattern
- filter pattern- Returns:
- updated builder
-
traceSerialization
public SerializationConfig.Builder traceSerialization(SerializationConfig.TraceOption traceSerialization) How to trace serialization.- Parameters:
traceSerialization
- trace option- Returns:
- updated builder
-
ignoreFiles
Whether to ignore "META-INF/helidon/serial-config.properties" property files defined in dependencies.- Parameters:
ignoreFiles
-true
to ignore files on classpath, defaults tofalse
- Returns:
- updated builder
-