Package 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:
org.camunda.bpm.engine.impl.variable.serializer.TypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
public class SpinObjectValueSerializer extends org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializerImplementation of aTypedValueSerializerforObjectValuesusing a Spin-providedDataFormatto serialize and deserialize java objects.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.camunda.spin.spi.DataFormat<?>dataFormatprotected Stringnameprotected org.camunda.spin.DeserializationTypeValidatorvalidator
-
Constructor Summary
Constructors Constructor Description SpinObjectValueSerializer(String name, org.camunda.spin.spi.DataFormat<?> dataFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSerializeValue(Object value)protected ObjectdeserializeFromByteArray(byte[] bytes, String objectTypeName)StringgetName()protected StringgetTypeNameForDeserialized(Object deserializedObject)protected org.camunda.spin.DeserializationTypeValidatorgetValidator(org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)protected booleanisSerializationTextBased()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
-
-
-
-
Field Detail
-
name
protected String name
-
dataFormat
protected org.camunda.spin.spi.DataFormat<?> dataFormat
-
validator
protected org.camunda.spin.DeserializationTypeValidator validator
-
-
Constructor Detail
-
SpinObjectValueSerializer
public SpinObjectValueSerializer(String name, org.camunda.spin.spi.DataFormat<?> dataFormat)
-
-
Method Detail
-
getName
public String getName()
-
isSerializationTextBased
protected boolean isSerializationTextBased()
- Specified by:
isSerializationTextBasedin classorg.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer
-
getTypeNameForDeserialized
protected String getTypeNameForDeserialized(Object deserializedObject)
- Specified by:
getTypeNameForDeserializedin classorg.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer
-
serializeToByteArray
protected byte[] serializeToByteArray(Object deserializedObject) throws Exception
- Specified by:
serializeToByteArrayin classorg.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer- Throws:
Exception
-
deserializeFromByteArray
protected Object deserializeFromByteArray(byte[] bytes, String objectTypeName) throws Exception
- Specified by:
deserializeFromByteArrayin classorg.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer- Throws:
Exception
-
canSerializeValue
protected boolean canSerializeValue(Object value)
- Specified by:
canSerializeValuein classorg.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
-
getValidator
protected org.camunda.spin.DeserializationTypeValidator getValidator(org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
-