org.camunda.spin.plugin.impl
Class FallbackSpinObjectValueSerializer

java.lang.Object
  extended by org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
      extended by org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
          extended by org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer
              extended by org.camunda.spin.plugin.impl.FallbackSpinObjectValueSerializer
All Implemented Interfaces:
TypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>

public class FallbackSpinObjectValueSerializer
extends AbstractObjectValueSerializer

Author:
Thorben Lindhauer

Field Summary
static String DESERIALIZED_OBJECTS_EXCEPTION_MESSAGE
           
protected  String serializationFormat
           
 
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer
serializationDataFormat
 
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
BINARY_VALUE_TYPES, valueType
 
Constructor Summary
FallbackSpinObjectValueSerializer(String serializationFormat)
           
 
Method Summary
protected  boolean canSerializeValue(Object value)
           
protected  Object deserializeFromByteArray(byte[] object, String objectTypeName)
           
 String getName()
           
protected  String getTypeNameForDeserialized(Object deserializedObject)
           
protected  boolean isSerializationTextBased()
           
protected  byte[] serializeToByteArray(Object deserializedObject)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer
convertToTypedValue, createDeserializedValue, createSerializedValue, deserializeFromByteArray, getObjectTypeName, isMutableValue, readObjectNameFromFields, updateTypedValue, writeToValueFields
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer
canWriteValue, getSerializationDataformat, getSerializedBytesValue, getSerializedStringValue, readSerializedValueFromFields, readValue, writeValue
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
canHandle, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESERIALIZED_OBJECTS_EXCEPTION_MESSAGE

public static final String DESERIALIZED_OBJECTS_EXCEPTION_MESSAGE
See Also:
Constant Field Values

serializationFormat

protected String serializationFormat
Constructor Detail

FallbackSpinObjectValueSerializer

public FallbackSpinObjectValueSerializer(String serializationFormat)
Method Detail

getName

public String getName()

getTypeNameForDeserialized

protected String getTypeNameForDeserialized(Object deserializedObject)
Specified by:
getTypeNameForDeserialized in class AbstractObjectValueSerializer

serializeToByteArray

protected byte[] serializeToByteArray(Object deserializedObject)
                               throws Exception
Specified by:
serializeToByteArray in class AbstractObjectValueSerializer
Throws:
Exception

deserializeFromByteArray

protected Object deserializeFromByteArray(byte[] object,
                                          String objectTypeName)
                                   throws Exception
Specified by:
deserializeFromByteArray in class AbstractObjectValueSerializer
Throws:
Exception

isSerializationTextBased

protected boolean isSerializationTextBased()
Specified by:
isSerializationTextBased in class AbstractObjectValueSerializer

canSerializeValue

protected boolean canSerializeValue(Object value)
Specified by:
canSerializeValue in class AbstractSerializableValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>


Copyright © 2016 camunda services GmbH. All rights reserved.