public class SmileJsonFactoryDecorator extends Object implements JsonFactoryDecorator
JsonFactoryDecorator that will switch the output
to binary smile output instead of JSON text.
See also SmileFeatureJsonGeneratorDecorator for configuring SmileGenerator features.
| Constructor and Description |
|---|
SmileJsonFactoryDecorator() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.core.JsonFactory |
decorate(com.fasterxml.jackson.core.JsonFactory factory)
Decorates the given
JsonFactory. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecoratepublic com.fasterxml.jackson.core.JsonFactory decorate(com.fasterxml.jackson.core.JsonFactory factory)
JsonFactoryDecoratorJsonFactory.
By default, for backwards compatibility purposes,
this assumes the given factory is a MappingJsonFactory,
and calls JsonFactoryDecorator.decorate(MappingJsonFactory) so that existing
implementations that only implemented JsonFactoryDecorator.decorate(MappingJsonFactory) continue to work.
In a future release, this will be changed to return the given factory by default,
and JsonFactoryDecorator.decorate(MappingJsonFactory) will be removed.
It is recommended to only override JsonFactoryDecorator.decorate(JsonFactory).
Existing implementations should migrate to only overriding JsonFactoryDecorator.decorate(JsonFactory)
so that they will continue to work after JsonFactoryDecorator.decorate(MappingJsonFactory) is removed.
Note that the default JsonFactory created by logstash-logback-encoder
is a MappingJsonFactory, but can be changed by JsonFactoryDecorators
to any subclass of JsonFactory.decorate in interface JsonFactoryDecoratorJsonFactoryCopyright © 2019. All rights reserved.