my dog learned polymorphism*
The moose likes Applets and the fly likes Trying to find AOP runtime weaving solution for Java applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Trying to find AOP runtime weaving solution for Java applets" Watch "Trying to find AOP runtime weaving solution for Java applets" New topic
Author

Trying to find AOP runtime weaving solution for Java applets

Andrew Och
Ranch Hand

Joined: Mar 19, 2004
Posts: 32
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

I'm going to move this to the Applets forum, more chance of you getting an answer there


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Andrew Och
Ranch Hand

Joined: Mar 19, 2004
Posts: 32
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.
 
 
subject: Trying to find AOP runtime weaving solution for Java applets