templates.data-delivery-data-records.record.serializer.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.Serializer;
import java.nio.charset.StandardCharsets;
/**
* Base implementation of a serializer for ${record.capitalizedName}.
*
* GENERATED CODE - DO NOT MODIFY (add your customizations in ${record.capitalizedName}Serializer).
*
* Originally generated from: ${templateName}
*/
public class ${record.capitalizedName}SerializerBase implements Serializer<${record.capitalizedName}> {
@Override
public byte[] serialize(String topic, ${record.capitalizedName} record) {
return record == null ? null : record.toJson().getBytes(StandardCharsets.UTF_8);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy