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 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: FeatureDecorator
      Configures the given feature on the given decoratable.
      Specified by:
      configure in class FeatureDecorator<tools.jackson.dataformat.yaml.YAMLFactoryBuilder, tools.jackson.dataformat.yaml.YAMLWriteFeature>
      Parameters:
      builder - the object to configure
      feature - the feature to enable or disable
      state - true to enable the feature, false to disable the feature.
      Returns:
      the decorated object