aop - How to know, the number of times a particular method is invoked in java -


Is there any way to know how often a member of the class has applied its member method?

I think (not sure), a method is a dedicated one member variable for a method, but this will not be possible if we have many ways.

For example:

  class A {public void someMethod () {}}  

And I have an example < / P>

  aa = new A ();  

So I want to know the number of times in a program a by some method we can have several ways

If you need a program inside this information, then this is what is for aspect oriented programming. Using it, it will be quite easy. Maybe it will also work.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -