https://github.com/toolisticon/annotation-constraints
WIP
https://github.com/toolisticon/annotation-constraints
Last synced: over 1 year ago
JSON representation
WIP
- Host: GitHub
- URL: https://github.com/toolisticon/annotation-constraints
- Owner: toolisticon
- License: mit
- Created: 2019-09-27T15:24:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T09:07:44.000Z (over 2 years ago)
- Last Synced: 2025-01-14T18:11:24.982Z (over 1 year ago)
- Language: Java
- Size: 179 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Annotation Constraints Annotation Processor
[](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.annotationconstraints/annotationconstraints-processor)
[](https://travis-ci.org/toolisticon/annotation-constraints)
[](https://codecov.io/gh/toolisticon/annotation-constraints)
This is a tech demo about providing and validating constraints on annotations.
There are two possible ways to achieve this:
- Placing constraint annotations on your annotation types or attributes
- Creating a digital twin annotation to define constraints on 3rd party annotations.
The project provides an annotation processor that is applied on all annotation types checking for existing constraints. Then it picks up the corresponding constraint implementation via an SPI and tests it.
It trigger compiler errors in case of broken constraints...
# License
This project is released under the revised [MIT License](LICENSE).
This project includes and repackages the [Annotation-Processor-Toolkit](https://github.com/holisticon/annotation-processor-toolkit) released under the [MIT License](/3rdPartyLicenses/annotation-processor-toolkit/LICENSE.txt).