Package com.embabel.common.util
Class ComputerSaysNoSerializer
-
- All Implemented Interfaces:
-
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public final class ComputerSaysNoSerializer<T extends Object> extends JsonSerializer<T>
Use @JsonSerialize(using = ComputerSaysNoSerializer.class) to prevent serialization of a class. This can be important to safeguard domain objects from being serialized and sent to the client.
https://www.youtube.com/watch?v=x0YGZPycMEU&ab_channel=MattLucasandDavidWalliams
-
-
Constructor Summary
Constructors Constructor Description ComputerSaysNoSerializer()
-
Method Summary
Modifier and Type Method Description Unitserialize(T value, JsonGenerator gen, SerializerProvider serializers)-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-