xjc-kafka-connect-plugin

A pom for deploying to maven central.

License

License

GroupId

GroupId

com.github.jcustenborder.kafka.connect
ArtifactId

ArtifactId

xjc-kafka-connect-plugin
Last Version

Last Version

0.2.13
Release Date

Release Date

Type

Type

jar
Description

Description

xjc-kafka-connect-plugin
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 xjc-kafka-connect-plugin

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
org.immutables : value jar 2.8.8
org.jvnet.jaxb2_commons : jaxb2-basics-tools jar 0.11.1
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
com.github.spotbugs : spotbugs-annotations jar 4.0.1
javax.annotation : javax.annotation-api jar 1.3.2

provided (1)

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

test (5)

Group / Artifact Type Version
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