Class JacksonObjectMarshallingStrategy

  • All Implemented Interfaces:
    io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy

    public class JacksonObjectMarshallingStrategy
    extends java.lang.Object
    implements io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy

        io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.fasterxml.jackson.databind.ObjectMapper mapper  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Object object)  
      io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context createContext()  
      protected byte[] log​(byte[] data)  
      com.fasterxml.jackson.databind.ObjectMapper mapper()  
      byte[] marshal​(io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectOutputStream os, java.lang.Object object)  
      java.lang.Object unmarshal​(java.lang.String dataType, io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectInputStream is, byte[] object, java.lang.ClassLoader classloader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy

        getName, getType
    • Field Detail

      • mapper

        protected com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • JacksonObjectMarshallingStrategy

        public JacksonObjectMarshallingStrategy​(io.automatiko.engine.api.workflow.Process<?> process)
    • Method Detail

      • accept

        public boolean accept​(java.lang.Object object)
        Specified by:
        accept in interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy
      • marshal

        public byte[] marshal​(io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context context,
                              java.io.ObjectOutputStream os,
                              java.lang.Object object)
                       throws java.io.IOException
        Specified by:
        marshal in interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
      • unmarshal

        public java.lang.Object unmarshal​(java.lang.String dataType,
                                          io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context context,
                                          java.io.ObjectInputStream is,
                                          byte[] object,
                                          java.lang.ClassLoader classloader)
                                   throws java.io.IOException,
                                          java.lang.ClassNotFoundException
        Specified by:
        unmarshal in interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • createContext

        public io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy.Context createContext()
        Specified by:
        createContext in interface io.automatiko.engine.api.marshalling.ObjectMarshallingStrategy
      • log

        protected byte[] log​(byte[] data)
      • mapper

        public com.fasterxml.jackson.databind.ObjectMapper mapper()