Class SerializationFeatureDecorator<M extends ObjectMapper, B extends MapperBuilder<M,B> >
java.lang.Object
net.logstash.logback.decorate.FeatureDecorator<B, SerializationFeature>
net.logstash.logback.decorate.SerializationFeatureDecorator<M,B>
- All Implemented Interfaces:
Decorator<B>, MapperBuilderDecorator<M,B>
public class SerializationFeatureDecorator<M extends ObjectMapper, B extends MapperBuilder<M,B>>
extends FeatureDecorator<B, SerializationFeature>
implements MapperBuilderDecorator<M,B>
A
MapperBuilderDecorator that allows enabling/disabling of SerializationFeature features.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Bconfigure(B builder, SerializationFeature feature, boolean state) Configures the given feature on the given decoratable.Methods inherited from class FeatureDecorator
addDisable, addEnable, decorate, disable, enable
-
Constructor Details
-
SerializationFeatureDecorator
public SerializationFeatureDecorator()
-
-
Method Details
-
configure
Description copied from class:FeatureDecoratorConfigures the given feature on the given decoratable.- Specified by:
configurein classFeatureDecorator<B extends MapperBuilder<M,B>, SerializationFeature> - 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
-