I have created a small tooling library for collecting CDI statistics: it records number of injections and destructions of every enabled bean. I wonder if such a mechanism already exists in WELD or has been described in CDI?
How does it work? During bean discovery it creates wrappers around all injection targets to detect postConstruct and preDestroy callbacks invocations.
I would be very gratefull for all ideas and opinions regarding this project.