The code showcases the creation, use and processing of custom annotations with the help of Reflection API. The video for the training in Russian language can be found here: https://www.youtube.com/playlist?list=PL6jg6AGdCNaWgDwiPjmlIvkr8s2OdDH2P
There are two classes with main
function in them that output information to console. You can call them in the following way:
mvn exec:java -Dexec.mainClass="ua.yet.adv.java.annotation.processor.AnnotationProcessor"
mvn exec:java -Dexec.mainClass="ua.yet.adv.java.reflection.ServiceLoader"