Skip to content

rinrinne/bind-event-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample: Event object binding with Jackson

Synopsis

This is a sample for binding JSON to gerrit event objects using Jackson.

Some event and data classes in gerrit are imported into event-model module with a bit modification.

Contents in event-model

  • Copy event and data class from Gerrit repository
  • Remove unnecessary classes
    • events/EventFactory.java
    • events/CommitReceivedEvent.java
  • Copy some classes from reviewdb then modify them to use enum only.
    • Patch.java (Patch.ChangeType)
    • Change.java (Change.Status)
    • CodedEnum.java (interface)

Environments

  • linux
    • java-1.6
      • maven-3.0.4

Build

mvn clean install
cd bind-event
mvn exec:java

License

The Apache Software License, Version 2.0

Copyright

Copyright (c) 2014 rinrinne a.k.a. rin_ne

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages