public class SpinObjectValueSerializer extends AbstractObjectValueSerializer
TypedValueSerializer for ObjectValues using a
Spin-provided DataFormat to serialize and deserialize java objects.| Modifier and Type | Field and Description |
|---|---|
protected org.camunda.spin.spi.DataFormat<?> |
dataFormat |
protected String |
name |
protected org.camunda.spin.DeserializationTypeValidator |
validator |
serializationDataFormatBINARY_VALUE_TYPES, valueType| Constructor and Description |
|---|
SpinObjectValueSerializer(String name,
org.camunda.spin.spi.DataFormat<?> dataFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canSerializeValue(Object value) |
protected Object |
deserializeFromByteArray(byte[] bytes,
String objectTypeName) |
String |
getName() |
protected String |
getTypeNameForDeserialized(Object deserializedObject) |
protected org.camunda.spin.DeserializationTypeValidator |
getValidator(ProcessEngineConfigurationImpl processEngineConfiguration) |
protected boolean |
isSerializationTextBased() |
protected byte[] |
serializeToByteArray(Object deserializedObject) |
convertToTypedValue, createDeserializedValue, createSerializedValue, deserializeFromByteArray, getObjectTypeName, isMutableValue, readObjectNameFromFields, updateTypedValue, writeToValueFieldscanWriteValue, getSerializationDataformat, getSerializedBytesValue, getSerializedStringValue, readSerializedValueFromFields, readValue, writeValuecanHandle, getTypeprotected String name
protected org.camunda.spin.spi.DataFormat<?> dataFormat
protected org.camunda.spin.DeserializationTypeValidator validator
public SpinObjectValueSerializer(String name, org.camunda.spin.spi.DataFormat<?> dataFormat)
public String getName()
protected boolean isSerializationTextBased()
isSerializationTextBased in class AbstractObjectValueSerializerprotected String getTypeNameForDeserialized(Object deserializedObject)
getTypeNameForDeserialized in class AbstractObjectValueSerializerprotected byte[] serializeToByteArray(Object deserializedObject) throws Exception
serializeToByteArray in class AbstractObjectValueSerializerExceptionprotected Object deserializeFromByteArray(byte[] bytes, String objectTypeName) throws Exception
deserializeFromByteArray in class AbstractObjectValueSerializerExceptionprotected boolean canSerializeValue(Object value)
canSerializeValue in class AbstractSerializableValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>protected org.camunda.spin.DeserializationTypeValidator getValidator(ProcessEngineConfigurationImpl processEngineConfiguration)
Copyright © 2013–2020 camunda services GmbH. All rights reserved.