Plugins (1067)


Training and Consulting (40)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 539
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rbygrave
Post subject: How to apply a javaagent transformation on save/compile?  PostPosted: Apr 07, 2008 - 05:10 PM



Joined: Apr 07, 2008
Posts: 3

I'm looking to find or develop a plugin that will modify the .class file after it has been compiled. Essentially I'll be applying a transformation like javaagent but at post compile time.

What is the best approach to this problem?

CompilationParticipant seemed like a starting point but does not quite seem right for the job?

Any thoughts or suggestions?

Thanks, Rob.
 
 View user's profile Send private message  
Reply with quote Back to top
rbygrave
Post subject: RE: How to apply a javaagent transformation on save/compile?  PostPosted: Apr 09, 2008 - 12:43 AM



Joined: Apr 07, 2008
Posts: 3

As a further note... in jdk6 it looks like you can add an agent dynamically at runtime. I'll have to test this out but perhaps this is an option.

It would be nice to do this in a low tech post save/compile manor in eclipse though... anyone got thoughts on that?
 
 View user's profile Send private message  
Reply with quote Back to top
rbygrave
Post subject: RE: How to apply a javaagent transformation on save/compile?  PostPosted: Apr 09, 2008 - 12:44 AM



Joined: Apr 07, 2008
Posts: 3

refer to the Starting Agents After VM Startup section in java/lang/instrument/package-summary.html


http://today.java.net/download/jdk6/doc ... mmary.html
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits