- java.lang.Object
-
- io.helidon.common.SerializationConfig.Builder
-
- All Implemented Interfaces:
Builder<SerializationConfig>
,Supplier<SerializationConfig>
- Enclosing class:
- SerializationConfig
public static class SerializationConfig.Builder extends Object implements Builder<SerializationConfig>
Fluent API builder to customizeSerializationConfig
. You can use system properties defined in the class to modify configuration, in which case you can just useSerializationConfig.configureRuntime()
directly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializationConfig
build()
Build the instance from this builder.SerializationConfig.Builder
filterPattern(String filterPattern)
Filter pattern to use.SerializationConfig.Builder
ignoreFiles(boolean ignoreFiles)
Whether to ignore "META-INF/helidon/serial-config.properties" property files defined in dependencies.SerializationConfig.Builder
onNoConfig(SerializationConfig.Action onNoConfig)
What action to do in case of no configuration of the global filter.SerializationConfig.Builder
onWrongConfig(SerializationConfig.Action onWrongConfig)
What action to do in case of wrong configuration of the global filter.SerializationConfig.Builder
traceSerialization(SerializationConfig.TraceOption traceSerialization)
How to trace serialization.
-
-
-
Method Detail
-
build
public SerializationConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SerializationConfig>
- Returns:
- instance of the built type
-
onWrongConfig
public SerializationConfig.Builder onWrongConfig(SerializationConfig.Action onWrongConfig)
What action to do in case of wrong configuration of the global filter.- Parameters:
onWrongConfig
- action to do- Returns:
- updated builder
-
onNoConfig
public SerializationConfig.Builder onNoConfig(SerializationConfig.Action onNoConfig)
What action to do in case of no configuration of the global filter.- Parameters:
onNoConfig
- action to do, defaults toSerializationConfig.Action.WARN
- Returns:
- updated builder
-
filterPattern
public SerializationConfig.Builder filterPattern(String 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
public SerializationConfig.Builder ignoreFiles(boolean 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
-
-