GithubHelp home page GithubHelp logo

gunnarmorling / awesome-annotation-processing Goto Github PK

View Code? Open in Web Editor NEW
447.0 25.0 46.0 12 KB

A curated list of resources related to the Java annotation processing API (JSR 269)

License: Other

awesome-list java annotation-processing annotation-processor

awesome-annotation-processing's Introduction

Awesome Java Annotation Processing

Java Annotation Processing (defined by JSR 269) is a standardized API for hooking into the Java compiler, allowing you to validate the code under compilation and generate additional (source or byte) code. This Awesome List aims at providing an overview of helpful resources around that API, including existing useful annotation processors, related presentations and blog posts, implementation best practices etc.

Existing Annotation Processors

Existing annotation processors for different purposes

  • avaje-inject - Compile-time dependency injection library.

  • avaje-jsonb - JSON mapping using generated source code

  • chimera - Compile-time static analysis and generation of commands for Spigot plugins.

  • dekorate - Generates manifests for Kubernetes/OpenShift.

  • Dagger - Compile-time dependency injection framework for both Java and Android.

  • derive4j - Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.

  • domino-jackson - Generates Jackson based JSON mappers where the same mapper can be used on the JVM/android or GWT client Javascript code.

  • domino-rest - Generates rest clients from JaxRs compatible interfaces.

  • Duzzt - Duzzt - Annotation-based Embedded DSL Generator for Java.

  • Google Auto - A collection of source code generators for Java.

  • Google Error Prone - A static analysis tool for Java that catches common programming mistakes at compile-time.

  • Gson Path - A Java annotation processor library which generates gson type adapters using basic JsonPath style annotations.

  • Hibernate Validator annotation processor - Compile-time checking of Bean Validation constraints.

  • JPA Static Metamodel Generator - Creates JPA 2 static metamodel classes.

  • Immutables - Java annotation processors to generate simple, safe and consistent value objects.

  • JMH Generator - Generates Java Microbenchmark Harness (JMH) benchmarks.

  • jbock - Generates command line parsers.

  • jstachio - A typesafe Java Mustache templating engine that compiles templates into readable Java code.

  • Magic Bean - A very basic library which will generate POJOs.

  • MapStruct - Compile-time generator for type-safe bean-to-bean mapping code.

  • Micronaut - A modern full-stack framework for building modular, easily testable microservice and serverless applications.

  • Pojo Analyzer - A library enables looping over POJOs' fields or access them by their names, and retreive their getters & setters.

  • Record Builder - Adds Builders and Withers for Java Records (added in Java 16).

  • Sundrio - A collection of apt-based code generating tools, including advanced builder generator, dsl generator, velocity transformer and etc.

  • Viper - A generator and a framework for injecting configurations via the java EE’s CDI. Put all your configuration keys in an enum, and make viper inject the configurations in your beans.

  • chocotea - Generates postman collection, environment and integration tests from Java code.

Android

Annotation processors specific to Android development

  • Butter Knife - Bind Android views and callbacks to fields and methods.

  • Parceler - Android Parcelables made easy through code generation.

Useful Tools

Useful tools and libraries for implementing annotation processors

  • Apache Velocity - A Java-based template engine

  • APTK - A toolbox that helps you to build annotation processors in a more efficient way.

  • Avaje Prisms - A JDK 11 fork of Hickory with some minor enhancements.

  • Compile Testing - Testing tools for javac and annotation processors.

  • CUTE - Testing tools for javac and annotation processors. Allows unit and black box testing.

  • Elementary - A suite of JUnit 5 extensions that provides a real annotation processing environment during testing

  • JavaPoet - A Java API for generating .java source files.

  • Hickory - An annotation processor for generating "prisms", allowing to access known annotation types without class references; Maven coordinates, fork repo (There is no official source repo existing)

APIs and tools going beyond what’s doable with JSR 269

  • Spoon - Source Code Analysis and Transformation for Java (allows for AST modifications, too)

  • javac Plug-in API (allows for full AST inspection)

  • Project Lombok - Generates boilerplate Java code like getters/setters and equals/hashCode methods.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.