I’ve been using Annotation Processing Tools (APT) for a few months now, and I like it. It opens new capabilities for the Java platform, I exploited them to create an APT virus, called APTVir.

APTVir is a single class and a single file that replicate when it is available on the classpath n the compiled code. It relies on APT to execute itself and copy itself in the output produced by the compiler.

Instead of long explanations, I created a screencast that explains it :-) and the code is available as a GitHub repository.



blog comments powered by Disqus

Published

04 October 2010