Class YamlWriteFeatureDecorator
java.lang.Object
net.logstash.logback.decorate.FeatureDecorator<tools.jackson.dataformat.yaml.YAMLFactoryBuilder, tools.jackson.dataformat.yaml.YAMLWriteFeature>
net.logstash.logback.decorate.yaml.YamlWriteFeatureDecorator
- All Implemented Interfaces:
Decorator<tools.jackson.dataformat.yaml.YAMLFactoryBuilder>, TokenStreamFactoryBuilderDecorator<tools.jackson.dataformat.yaml.YAMLFactory, tools.jackson.dataformat.yaml.YAMLFactoryBuilder>
public class YamlWriteFeatureDecorator
extends FeatureDecorator<tools.jackson.dataformat.yaml.YAMLFactoryBuilder, tools.jackson.dataformat.yaml.YAMLWriteFeature>
implements TokenStreamFactoryBuilderDecorator<tools.jackson.dataformat.yaml.YAMLFactory, tools.jackson.dataformat.yaml.YAMLFactoryBuilder>
A
JsonGeneratorDecorator that allows enabling/disabling of YAMLWriteFeature features.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.dataformat.yaml.YAMLFactoryBuilderconfigure(tools.jackson.dataformat.yaml.YAMLFactoryBuilder builder, tools.jackson.dataformat.yaml.YAMLWriteFeature feature, boolean state) Configures the given feature on the given decoratable.Methods inherited from class FeatureDecorator
addDisable, addEnable, decorate, disable, enable
-
Constructor Details
-
YamlWriteFeatureDecorator
public YamlWriteFeatureDecorator()
-
-
Method Details
-
configure
protected tools.jackson.dataformat.yaml.YAMLFactoryBuilder configure(tools.jackson.dataformat.yaml.YAMLFactoryBuilder builder, tools.jackson.dataformat.yaml.YAMLWriteFeature feature, boolean state) Description copied from class:FeatureDecoratorConfigures the given feature on the given decoratable.- Specified by:
configurein classFeatureDecorator<tools.jackson.dataformat.yaml.YAMLFactoryBuilder, tools.jackson.dataformat.yaml.YAMLWriteFeature>- Parameters:
builder- the object to configurefeature- the feature to enable or disablestate- true to enable the feature, false to disable the feature.- Returns:
- the decorated object
-