In Java we have the option to add or change the code we are compiling during compilation. It allows us to add new code based upon annotations in the code. This could for example be used to generate some proxy classes, or setting up some service loader files.
In this post we will be looking at annotation processing to create a light-weight and very simplistic bean context.
Note: if you are looking for a CDI framework please don’t use the example in this post but look at Guice or Spring instead.
[Read More]