Class KObjectMarshaller

  • All Implemented Interfaces:
    org.infinispan.protostream.BaseMarshaller<org.uberfire.ext.metadata.model.KObject>, org.infinispan.protostream.MessageMarshaller<org.uberfire.ext.metadata.model.KObject>

    public class KObjectMarshaller
    extends Object
    implements org.infinispan.protostream.MessageMarshaller<org.uberfire.ext.metadata.model.KObject>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.infinispan.protostream.MessageMarshaller

        org.infinispan.protostream.MessageMarshaller.ProtoStreamReader, org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter
    • Constructor Detail

      • KObjectMarshaller

        public KObjectMarshaller​(String typeName)
    • Method Detail

      • readFrom

        public org.uberfire.ext.metadata.model.impl.KObjectImpl readFrom​(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader protoStreamReader)
                                                                  throws IOException
        Specified by:
        readFrom in interface org.infinispan.protostream.MessageMarshaller<org.uberfire.ext.metadata.model.KObject>
        Throws:
        IOException
      • writeTo

        public void writeTo​(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter protoStreamWriter,
                            org.uberfire.ext.metadata.model.KObject kObject)
                     throws IOException
        Specified by:
        writeTo in interface org.infinispan.protostream.MessageMarshaller<org.uberfire.ext.metadata.model.KObject>
        Throws:
        IOException
      • getJavaClass

        public Class<? extends org.uberfire.ext.metadata.model.impl.KObjectImpl> getJavaClass()
        Specified by:
        getJavaClass in interface org.infinispan.protostream.BaseMarshaller<org.uberfire.ext.metadata.model.KObject>
      • getTypeName

        public String getTypeName()
        Specified by:
        getTypeName in interface org.infinispan.protostream.BaseMarshaller<org.uberfire.ext.metadata.model.KObject>