org.camunda.spin.plugin.impl
Class SpinObjectValueSerializer
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer
org.camunda.spin.plugin.impl.SpinObjectValueSerializer
- All Implemented Interfaces:
- TypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
public class SpinObjectValueSerializer
- extends AbstractObjectValueSerializer
Implementation of a TypedValueSerializer for ObjectValues using a
Spin-provided DataFormat to serialize and deserialize java objects.
- Author:
- Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
dataFormat
protected org.camunda.spin.spi.DataFormat<?> dataFormat
SpinObjectValueSerializer
public SpinObjectValueSerializer(String name,
org.camunda.spin.spi.DataFormat<?> dataFormat)
getName
public String getName()
isSerializationTextBased
protected boolean isSerializationTextBased()
- Specified by:
isSerializationTextBased in class AbstractObjectValueSerializer
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[] bytes,
String objectTypeName)
throws Exception
- Specified by:
deserializeFromByteArray in class AbstractObjectValueSerializer
- Throws:
Exception
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.