How to auto-intercept many invocation of a Java method?
<p>we are trying to collect metrics on how our code uses an external API. Suppose I want to intercept our call to the API A.f(). From <a href="https://stackoverflow.com/questions/576918/how-do-i-intercept-a-method-invocation-with-standard-java-features-no-aspectj-e">another post</a> I see we can intercept it by proxy an instance. By can we do this for all such instances? We probably call this function at least hundreds of times, we can't proxy all such instances. </p>

<p>Thanks! </p>