Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to find AOP runtime weaving solution for Java applets  RSS feed

 
Andrew Och
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone found a way to perform just-in-time-translation weaving with java applets. I know that compile time weaving works very well, but I really am looking for run-time weaving solution. Is there a way to do run-time weaving in applets not using the Class Loader.

I searched and searched for ways to do run-time weaving to no avail. I have read and re-read Sun's explanation security explanation on: http://java.sun.com/sfaq/#appletCL that states "A web browser uses only one class loader, which is established at start-up. Thereafter, the system class loader cannot be extended, overloaded, overridden or replaced. Applets cannot create or reference their own class loader." Also I am not looking for just a hack or security hole like that described in Applets Running Wild: "http://www.securingjava.com/chapter-five/chapter-five-8.html" and the Evil Class Loader, because I need to sell the solution to my team and my boss.

If anyone has any help or advice on a way of doing run-time weaving in applets please let me know I am prepared to try any avenue.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the Applets forum, more chance of you getting an answer there
 
Andrew Och
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for posting in wrong place. I really did think about posting in applets, but at the time I felt it might be better to post here, because its to do with AOP. You are quite right to move it to applets though.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!