Interface OrgJsonSerializer<T>

All Superinterfaces:
PojoSerializer<T>
All Known Implementing Classes:
S3EventSerializer

public interface OrgJsonSerializer<T> extends PojoSerializer<T>
Interface for event serializers that use org json
  • Method Details

    • withClass

      OrgJsonSerializer<T> withClass(Class<T> eventClass)
      Parameters:
      eventClass - event class object
      Returns:
      OrgJsonSerializer with event type
    • withClassLoader

      OrgJsonSerializer<T> withClassLoader(ClassLoader classLoader)
      Parameters:
      classLoader - to use if the implementation needs to load any classes
      Returns:
      OrgJsonSerializer with the supplied classLoader
    • fromJson

      T fromJson(InputStream input)
      defined in PojoSerializer
      Specified by:
      fromJson in interface PojoSerializer<T>
      Parameters:
      input - input stream
      Returns:
      deserialized object of type T
    • fromJson

      T fromJson(String input)
      defined in PojoSerializer
      Specified by:
      fromJson in interface PojoSerializer<T>
      Parameters:
      input - String input
      Returns:
      deserialized object of type T
    • toJson

      void toJson(T value, OutputStream output)
      defined in PojoSerializer
      Specified by:
      toJson in interface PojoSerializer<T>
      Parameters:
      value - instance of type T to be serialized
      output - OutputStream to serialize object to