0 Replies Latest reply: Apr 18, 2012 5:31 PM by Kamil Borzym RSS

Collecting CDI statistics

Kamil Borzym Newbie

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.

 

Here is library download page:

https://bitbucket.org/kam800/cdi-overseer/downloads

Here is wikipage:

https://bitbucket.org/kam800/cdi-overseer/wiki/Home

 

I has been tested on JBoss AS 6.