OO-atom
NOTICE
OO-Atom support is currenty suspended in favour of its successor --- OO-Equivalence. OO-Equivalence serves the same purpose as OO-Atom, deriving the most of the source code and ideology from it, but uses the brand new approach.
OO-Equivalence is backward-compatible with OO-Atom on source code level: if your project works with OO-Atom, it will work the same way after being recompiled with OO-Equivalence. For any issues with OO-Atom to OO-Equivalence migration, report to OO-Equivalence issue tracker.
Intro
OO-atom is a desperate attempt to make Java programming more predictable and transparent. Instead of fighting the boilerplate code by hiding it, introducing hidden coupling, like it is done by Java EE, Spring, Hibernate and other "magical" solutions, OO-atom greets clean and open design by taking the most from Java SE, and the best from OOP.
The project is built around the term named "Atom". Atom is a Java class, which strictly follows a set of requirements. Requirements were selected in such way that declarative object composition for the Atoms is trivial and common approach. Object composition is used as a main instrument for composing application from a small cohesive classes, instead of dependencies injection by means of DI containers.
Also, for all Atoms, OO-atom seeks for the best ways of improving quality, maintainability, test coverage and performance.
The project is inspired by the guidelines from the books "Elegant Objects", written by Yegor Bugayenko, and the materials from his blog. However, several changes and additions were made to initial concept - see this page for the list of differences.
OO-atom project is designed on the following principles:
- it is transparent. It never dictates the architecture of your applications.
- it is flexible. You are free to use it with any solution from a large Java ecosystem
- it operates at compile-time only. It never brings ad-hoc runtime dependencies to your application.
Quick start with Maven
Add atom-maven-plugin
to your project's pom file:
<plugin>
<groupId>com.pragmaticobjects.oo.atom</groupId>
<artifactId>atom-maven-plugin</artifactId>
<version>x.y.z</version>
<executions>
<execution>
<goals>
<goal>generate-annotations</goal>
<goal>instrument</goal>
<goal>instrument-tests</goal>
</goals>
</execution>
</executions>
</plugin>