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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit serialize(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
    • Constructor Detail

      • ComputerSaysNoSerializer

        ComputerSaysNoSerializer()
    • Method Detail

      • serialize

         Unit serialize(T value, JsonGenerator gen, SerializerProvider serializers)