templates.data-delivery-data-records.record.deserializer.base.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foundation-mda Show documentation
Show all versions of foundation-mda Show documentation
Model driven architecture artifacts for aiSSEMBLE
The newest version!
package ${basePackage};
import org.apache.kafka.common.serialization.Deserializer;
import java.nio.charset.StandardCharsets;
/**
* Base implementation of a deserializer for ${record.capitalizedName}.
*
* GENERATED CODE - DO NOT MODIFY (add your customizations in ${record.capitalizedName}Deserializer).
*
* Originally generated from: ${templateName}
*/
public class ${record.capitalizedName}DeserializerBase implements Deserializer<${record.capitalizedName}> {
@Override
public ${record.capitalizedName} deserialize(String topic, byte[] data) {
return data == null ? null : ${record.capitalizedName}.fromJson(new String(data, StandardCharsets.UTF_8));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy