The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Add Logging at Class Load Time with Java Instrumentation
Subject:  wouldn't aspectj be a better choice ?
Date:  2008-04-27 02:37:11
From:  ravn
Response to: wouldn't aspectj be a better choice ?


Aspectj works as part of compiling your source, and I agree that this is probably a great thing to use if it is suitable for your development habits.

The agent approach allows you to instrument classes without any recompilation and redeployment.

This provide another way to investigate issues with code where you do not have the source or where redeployment is out of the question. You may not have access to a debugger, even. Has happened to me.


 Feed java.net RSS Feeds