Class DateTimeFeatureDecorator<M extends ObjectMapper, B extends MapperBuilder<M,B>>

java.lang.Object
net.logstash.logback.decorate.FeatureDecorator<B, DateTimeFeature>
net.logstash.logback.decorate.DateTimeFeatureDecorator<M,B>
All Implemented Interfaces:
Decorator<B>, MapperBuilderDecorator<M,B>

public class DateTimeFeatureDecorator<M extends ObjectMapper, B extends MapperBuilder<M,B>> extends FeatureDecorator<B, DateTimeFeature> implements MapperBuilderDecorator<M,B>
A MapperBuilderDecorator that allows enabling/disabling of DateTimeFeature features.
  • Constructor Details

    • DateTimeFeatureDecorator

      public DateTimeFeatureDecorator()
  • Method Details

    • configure

      protected B configure(B builder, DateTimeFeature feature, boolean state)
      Description copied from class: FeatureDecorator
      Configures the given feature on the given decoratable.
      Specified by:
      configure in class FeatureDecorator<B extends MapperBuilder<M,B>, DateTimeFeature>
      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