Class HookRegistryDeserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<HookRegistry>

    public class HookRegistryDeserializer
    extends java.lang.Object
    implements com.google.gson.JsonDeserializer<HookRegistry>
    Custom deserializer that directly creates domain hook objects from JSON. Eliminates the need for intermediate DTO objects entirely.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HookRegistry deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HookRegistryDeserializer

        public HookRegistryDeserializer()
    • Method Detail

      • deserialize

        public HookRegistry deserialize​(com.google.gson.JsonElement json,
                                        java.lang.reflect.Type type,
                                        com.google.gson.JsonDeserializationContext context)
                                 throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<HookRegistry>
        Throws:
        com.google.gson.JsonParseException