kafka-connect-xml

A pom for deploying to maven central.

License

License

GroupId

GroupId

com.github.jcustenborder.kafka.connect
ArtifactId

ArtifactId

kafka-connect-xml
Last Version

Last Version

0.2.13
Release Date

Release Date

Type

Type

jar
Description

Description

kafka-connect-xml
A pom for deploying to maven central.
Project URL

Project URL

https://github.com/jcustenborder/xjc-kafka-connect-plugin
Source Code Management

Source Code Management

https://github.com/jcustenborder/xjc-kafka-connect-plugin

Download kafka-connect-xml

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jcustenborder.kafka.connect/kafka-connect-xml/ -->
<dependency>
    <groupId>com.github.jcustenborder.kafka.connect</groupId>
    <artifactId>kafka-connect-xml</artifactId>
    <version>0.2.13</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jcustenborder.kafka.connect/kafka-connect-xml/
implementation 'com.github.jcustenborder.kafka.connect:kafka-connect-xml:0.2.13'
// https://jarcasting.com/artifacts/com.github.jcustenborder.kafka.connect/kafka-connect-xml/
implementation ("com.github.jcustenborder.kafka.connect:kafka-connect-xml:0.2.13")
'com.github.jcustenborder.kafka.connect:kafka-connect-xml:jar:0.2.13'
<dependency org="com.github.jcustenborder.kafka.connect" name="kafka-connect-xml" rev="0.2.13">
  <artifact name="kafka-connect-xml" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jcustenborder.kafka.connect', module='kafka-connect-xml', version='0.2.13')
)
libraryDependencies += "com.github.jcustenborder.kafka.connect" % "kafka-connect-xml" % "0.2.13"
[com.github.jcustenborder.kafka.connect/kafka-connect-xml "0.2.13"]

Dependencies

compile (7)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
javax.xml.bind : jaxb-api jar 2.3.1
org.glassfish.jaxb : jaxb-runtime jar 2.3.1
org.glassfish.jaxb : jaxb-core jar 2.3.0.1
org.glassfish.jaxb : jaxb-xjc jar 2.3.1
org.apache.kafka : connect-api jar 1.0.0
javax.annotation : javax.annotation-api jar 1.3.2

provided (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.21

test (6)

Group / Artifact Type Version
org.jvnet.jaxb2_commons : jaxb2-basics jar 0.11.1
org.junit.jupiter : junit-jupiter-engine jar 5.0.0
org.junit.jupiter : junit-jupiter-api jar 5.0.0
org.mockito : mockito-core jar 1.10.19
ch.qos.logback : logback-classic jar 1.1.8
org.reflections : reflections jar 0.9.10

Project Modules

There are no modules declared in this project.

Introduction

xjc-kafka-connect-plugin is used to extend code generated by xjc. All type classes generated by xjc will be augmented to implement the Connectable interface. The following method is added to each of the classes that are generated by xjc. This will return a Struct that is populated with the graph of the object.

    @Override
    public Struct toConnectStruct() {
        Struct struct = new Struct(CONNECT_SCHEMA);
        struct.put("author", this.getAuthor());
        struct.put("title", this.getTitle());
        struct.put("genre", this.getGenre());
        struct.put("price", this.getPrice());
        if (null!= this.getPubDate()) {
            struct.put("pub_date", this.getPubDate().toGregorianCalendar(TimeZone.getTimeZone("UTC"), null, null).getTime());
        } else {
            struct.put("pub_date", null);
        }
        struct.put("review", this.getReview());
        struct.put("id", this.getId());
        return struct;
    }

Versions

Version
0.2.13
0.0.1.8
0.0.1.7
0.0.1.6
0.0.1.4
0.0.1.3
0.0.1.2