Giter Site home page Giter Site logo

toolisticon / bean-builder Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 188 KB

An annotation processor to create Builder classes for POJOs (Example project for the annotation processor toolkit)

License: MIT License

Java 95.98% Smarty 4.02%
annotation-processor-toolkit example

bean-builder's Introduction

toolisticon

Organizational stats

github-metrics.svg

bean-builder's People

Contributors

tobiasstamann avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

alexrogalskiy

bean-builder's Issues

Allow bean creation with final fields

It must be possible to create beans with final fields.

Final fields are usually initialized via constructor parameters.
Algorithm must try to map parameters via name.
Otherwise it could be explicitely mapped via an annotation on constructor parameters

Constraints:

  • Class must not have a noarg constructor
  • Constructor must not have any parameters which can't be mapped to (constant) fields or to super classes

Add annotation for creating BeanBuilders for existing classes

It could be really useful to generate Bean-Builder instances for existing classes.
This can become quite handy for implementing unit tests, since builders could be generated in test classpath scope

Therefore we need an annotation which can be applied in a package-info.java file.
It should take the following attributes:

  • Classes[] to define for which classes those beanbuilder should be build

Bean-Builders should be created with package private visibility scope.

By doing so BeanBuilders can also be created for already compiled classes.

Add unit tests

Need to add explicit unit tests (Most things are currently implicitely tested via the examples project).

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.